Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RevoluteImpulseJoint

Hierarchy

Index

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

  • configureMotor(targetPos: number, targetVel: number, stiffness: number, damping: number): void
  • Parameters

    • targetPos: number
    • targetVel: number
    • stiffness: number
    • damping: number

    Returns void

  • configureMotorPosition(targetPos: number, stiffness: number, damping: number): void
  • configureMotorVelocity(targetVel: number, factor: number): void
  • contactsEnabled(): boolean
  • Indicates if contacts are enabled between colliders attached to the rigid-bodies linked by this joint.

    Returns boolean

  • 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

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

    Returns boolean

  • limitsEnabled(): boolean
  • limitsMax(): number
  • The max limit of this joint.

    Returns number

  • limitsMin(): number
  • The min limit of this joint.

    Returns number

  • rawAxis(): RawJointAxis
  • The axis left free by this joint.

    Returns RawJointAxis

  • setAnchor1(newPos: Vector): void
  • 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

  • setAnchor2(newPos: Vector): 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

  • setContactsEnabled(enabled: boolean): void
  • Controls whether contacts are computed between colliders attached to the rigid-bodies linked by this joint.

    Parameters

    • enabled: boolean

    Returns void

  • setLimits(min: number, max: number): void
  • Sets the limits of this joint.

    Parameters

    • min: number

      The minimum bound of this joint’s free coordinate.

    • max: number

      The maximum bound of this joint’s free coordinate.

    Returns void

Generated using TypeDoc