Attention: Here be dragons
This is the
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
Inherits: Node2D < CanvasItem < Node < Object
Inherited By: DampedSpringJoint2D, GrooveJoint2D, PinJoint2D
Base node for all joint constraints in 2D physics.
Base node for all joint constraints in 2D physics. Joints take 2 bodies and apply a custom constraint.
float 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 ProjectSettings.physics/2d/solver/default_constraint_bias is used.
bool disable_collision =
true, node_a and node_b can not collide.
NodePath node_a =
The first body attached to the joint. Must derive from PhysicsBody2D.
NodePath node_b =
The second body attached to the joint. Must derive from PhysicsBody2D.