Groove constraint for 2D physics.
    public class GrooveJoint2D : Joint2D

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

Inheritance Chain

Constructors

    public GrooveJoint2D()

Properties

    public float InitialOffset { get; set; }

The body B’s initial anchor position defined by the joint’s origin and a local offset InitialOffset along the joint’s Y axis (along the groove).

    public float Length { get; set; }

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

Methods

    [Obsolete("GetInitialOffset is deprecated. Use the InitialOffset property instead.")]
    public float GetInitialOffset()

Getter for InitialOffset

    [Obsolete("GetLength is deprecated. Use the Length property instead.")]
    public float GetLength()

Getter for Length

    [Obsolete("SetInitialOffset is deprecated. Use the InitialOffset property instead.")]
    public void SetInitialOffset(float offset)

Setter for InitialOffset

    [Obsolete("SetLength is deprecated. Use the Length property instead.")]
    public void SetLength(float length)

Setter for Length

Tags: