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