Class reference

Joint2D

Inherits Node2D

Abstract base class for all 2D physics joints.

Description

Abstract base class for all joints in 2D physics. 2D joints bind together two physics bodies (node_a and node_b) and apply a constraint.

Properties

bool disable_collision = true

If true, the two bodies bound together do not collide with each other.

NodePath node_a = NodePath("")

Path to the first body (A) attached to the joint. The node must inherit PhysicsBody2D.

NodePath node_b = NodePath("")

Path to the second body (B) attached to the joint. The node must inherit PhysicsBody2D.

Methods

Source revision 4f5b14abade2
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.