Skip to content

class_groovejoint2d

reduz edited this page Apr 10, 2014 · 10 revisions

GrooveJoint2D

####Inherits: Joint2D ####Category: Core

Brief Description

Groove constraint for 2D physics.

Member Functions

Description

Groove constraint for 2D physics. This is useful for making a body "slide" through a segment placed in another.

Member Function Description

  • 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.

Clone this wiki locally