class_groovejoint2d - dragonsoulz/godot GitHub Wiki
GrooveJoint2D
####Inherits: Joint2D ####Category: Core
Brief Description
Groove constraint for 2D physics.
Member Functions
- void set_length ( float length )
- float get_length ( ) const
- void set_initial_offset ( float offset )
- float get_initial_offset ( ) const
Description
Groove constraint for 2D physics. This is useful for making a body "slide" through a segment placed in another.
Member Function Description
set_length
- void set_length ( float length )
Set the length of the groove.
get_length
- float get_length ( ) const
Return the length of the groove.
set_initial_offset
- void set_initial_offset ( float offset )
Set the initial offset of the groove on body A.
get_initial_offset
- float get_initial_offset ( ) const
Set the final offset of the groove on body A.