The base joint class. Joints are used to constraint two bodies together in various fashions. Some joints also feature limits and motors.

Hierarchy (View Summary)

Constructors

Methods

  • Get the reaction force on body2 at the joint anchor in Newtons.

    Parameters

    • inv_dt: number

    Returns b2Vec2

    Reaction force (N)

  • Get the reaction torque on body2 in N.

    Parameters

    • inv_dt: number

    Returns number

    Reaction torque (N).

  • Short-cut function to determine if either body is inactive.

    Returns boolean

    True if active, otherwise false.

  • Set the user data pointer.

    Parameters

    • data: any

      Your custom data.

    Returns void