Class SixDOFJointDrive

Specifies parameters for a drive that will attempt to move the joint bodies to the specified drive position and velocity.

Constructors

  • Parameters

    • Optionalstiffness: number
    • Optionaldamping: number
    • OptionalforceLimit: number
    • OptionalisAccelerationEnabled: boolean

    Returns SixDOFJointDrive

Properties

_damping: number
_forceLimit: number
_isAccelerationEnabled: boolean
_stiffness: number

Accessors

  • get damping(): number
  • Damping strength. Force propertional to the velocity error.

    Returns number

  • set damping(value): void
  • Parameters

    • value: number

    Returns void

  • get forceLimit(): number
  • Maximum force the drive can apply.

    Returns number

  • set forceLimit(value): void
  • Parameters

    • value: number

    Returns void

  • get isAccelerationEnabled(): boolean
  • If true the drive will generate acceleration instead of forces. Acceleration drives are easier to tune as they account for the masses of the actors to which the joint is attached.

    Returns boolean

  • set isAccelerationEnabled(value): void
  • Parameters

    • value: boolean

    Returns void

  • get stiffness(): number
  • Spring strength. Force proportional to the position error.

    Returns number

  • set stiffness(value): void
  • Parameters

    • value: number

    Returns void

Methods