Attention: Here be dragons
This is the latest
(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...
GrooveJoint2D¶
Inherits: Joint2D < Node2D < CanvasItem < Node < Object
Groove constraint for 2D physics.
Description¶
Groove constraint for 2D physics. This is useful for making a body "slide" through a segment placed in another.
Properties¶
|
||
|
Property Descriptions¶
float initial_offset = 25.0
The body B's initial anchor position defined by the joint's origin and a local offset initial_offset along the joint's Y axis (along the groove).
float length = 50.0
The groove's length. The groove is from the joint's origin towards length along the joint's local Y axis.