Inherits: Node2D < CanvasItem < Node < Object
Inherited By: DampedSpringJoint2D, GrooveJoint2D, PinJoint2D
Abstract base class for all 2D physics joints.
Abstract base class for all joints in 2D physics. 2D joints bind together two physics bodies and apply a constraint.
| ||
| ||
| ||
|
get_rid ( ) const |
0.0
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.
true
If true, node_a and node_b can not collide.
NodePath("")
The first body attached to the joint. Must derive from PhysicsBody2D.
NodePath("")
The second body attached to the joint. Must derive from PhysicsBody2D.
Returns the joint's RID.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_joint2d.html