Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface 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

physicsJointSearch playground for physicsJoint

physicsJoint: any

Physics joint

Methods

setLimitSearch playground for setLimit

  • 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

setMotorSearch playground for setMotor

  • 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

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method