W3cubDocs

/Godot 3.0

GrooveJoint2D

Inherits: Joint2D < Node2D < CanvasItem < Node < Object

Category: Core

Brief Description

Groove constraint for 2D physics.

Member Variables

  • float initial_offset - The body B’s initial anchor position defined by the joint’s origin and a local offset initial_offset along the joint’s y axis (along the groove). Default value: 25
  • float length - The groove’s length. The groove is from the joint’s origin towards length along the joint’s local y axis. Default value: 50

Description

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

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