W3cubDocs

/Godot 2.1

GrooveJoint2D

Inherits: Joint2D < Node2D < CanvasItem < Node < Object

Category: Core

Brief Description

Groove constraint for 2D physics.

Member Functions

float get_initial_offset ( ) const
float get_length ( ) const
void set_initial_offset ( float offset )
void set_length ( float length )

Description

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

Member Function Description

float get_initial_offset ( ) const

Set the final offset of the groove on body A.

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.

void set_length ( float length )

Set the length of the groove.

© 2014–2017 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/2.1/classes/class_groovejoint2d.html