A distance joint constrains two points on two bodies to remain at a fixed distance from each other. You can view this as a massless, rigid rod.

Hierarchy (View Summary)

Constructors

Methods

  • Gets the length of distance between the two bodies.

    Returns number

    Length.

  • Sets the damping ratio.

    Parameters

    • ratio: number

      New damping ratio.

    Returns void

  • Sets the frequency.

    Parameters

    • hz: number

      New frequency (hertz).

    Returns void

  • Sets the length of distance between the two bodies.

    Parameters

    • length: number

      New length.

    Returns void