Class Joint2D
Abstract base class for all 2D physics joints.
- Inheritance
-
Joint2D
- Derived
Remarks
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
bias
When node_a and node_b move in different directions the bias controls how fast the joint pulls them back to their original position. The lower the bias the more the two bodies can pull on the joint.
When set to 0
, the default value from physics/2d/solver/default_constraint_bias is used.
var bias : float = 0.0
Property Value
Remarks
disable_collision
If true
, the two bodies bound together do not collide with each other.
var disable_collision : bool = true
Property Value
Remarks
node_a
Path to the first body (A) attached to the joint. The node must inherit PhysicsBody2D.
var node_a : NodePath = NodePath("")
Property Value
Remarks
node_b
Path to the second body (B) attached to the joint. The node must inherit PhysicsBody2D.
var node_b : NodePath = NodePath("")
Property Value
Remarks
Methods
get_rid
Qualifiers: const
Returns the joint's internal RID from the PhysicsServer2D.
RID get_rid