GrooveJoint2D

Inherits: Joint2D < Node2D < CanvasItem < Node < Object

Groove constraint for 2D physics.

Description

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

Property Descriptions

Default25.0
Setterset_initial_offset(value)
Getterget_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).


Default50.0
Setterset_length(value)
Getterget_length()

The groove’s length. The groove is from the joint’s origin towards length along the joint’s local Y axis.

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.