Class ImpulseJoint

Hierarchy

Constructors

Properties

bodySet: RigidBodySet
handle: number
rawSet: RawImpulseJointSet

Methods

  • The position of the first anchor of this joint.

    The first anchor gives the position of the application point on the local frame of the first rigid-body it is attached to.

    Returns Vector

  • The position of the second anchor of this joint.

    The second anchor gives the position of the application point on the local frame of the second rigid-body it is attached to.

    Returns Vector

  • The first rigid-body this joint it attached to.

    Returns RigidBody

  • The second rigid-body this joint is attached to.

    Returns RigidBody

  • Indicates if contacts are enabled between colliders attached to the rigid-bodies linked by this joint.

    Returns boolean

  • Internal

    Parameters

    Returns void

  • The rotation quaternion that aligns this joint's first local axis to the x axis.

    Returns Rotation

  • The rotation matrix that aligns this joint's second local axis to the x axis.

    Returns Rotation

  • Checks if this joint is still valid (i.e. that it has not been deleted from the joint set yet).

    Returns boolean

  • Sets the position of the first anchor of this joint.

    The first anchor gives the position of the application point on the local frame of the first rigid-body it is attached to.

    Parameters

    Returns void

  • Sets the position of the second anchor of this joint.

    The second anchor gives the position of the application point on the local frame of the second rigid-body it is attached to.

    Parameters

    Returns void

  • Controls whether contacts are computed between colliders attached to the rigid-bodies linked by this joint.

    Parameters

    • enabled: boolean

    Returns void

  • The type of this joint given as a string.

    Returns JointType

Generated using TypeDoc