IMotorEnabledJoint

Interface for a motor enabled joint

see

https://doc.babylonjs.com/how_to/using_the_physics_engine

Hierarchy

  • IMotorEnabledJoint

Implemented by

Index

Properties

Methods

Properties

physicsJoint

Find examples in Playground
physicsJoint: any

Physics joint

Methods

setLimit

Find examples in Playground
  • setLimit(upperLimit: number, lowerLimit?: number, motorIndex?: number): void
  • Sets the limit of the motor

    Parameters

    • upperLimit: number

      The upper limit of the motor

    • Optional lowerLimit: number

      The lower limit of the motor

    • Optional motorIndex: number

      The index of the motor

    Returns void

setMotor

Find examples in Playground
  • setMotor(force?: number, maxForce?: number, motorIndex?: number): void
  • Sets the motor of the motor-enabled joint

    Parameters

    • Optional force: number

      The force of the motor

    • Optional maxForce: number

      The maximum force of the motor

    • Optional motorIndex: number

      The index of the motor

    Returns void

Generated using TypeDoc