forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
class_groovejoint2d
reduz edited this page Apr 10, 2014
·
10 revisions
####Inherits: Joint2D ####Category: Core
Groove constraint for 2D physics.
- void set_length ( float length )
- float get_length ( ) const
- void set_initial_offset ( float offset )
- float get_initial_offset ( ) const
Groove constraint for 2D physics. This is useful for making a body "slide" through a segment placed in another.
- void set_length ( float length )
Set the length of the groove.
- float get_length ( ) const
Return the length of the groove.
- void set_initial_offset ( float offset )
Set the initial offset of the groove on body A.
- float get_initial_offset ( ) const
Set the final offset of the groove on body A.