MotorEnabledJoint

Hierarchy

Implements

Index

Constructors

constructor

Properties

jointData

jointData: PhysicsJointData

physicsJoint

physicsJoint: any

physicsPlugin

physicsPlugin: IPhysicsEnginePlugin

type

type: number

Static BallAndSocketJoint

BallAndSocketJoint: number

Static DistanceJoint

DistanceJoint: number

Static Hinge2Joint

Hinge2Joint: number

Static HingeJoint

HingeJoint: number

Static LockJoint

LockJoint: number

Static PointToPointJoint

PointToPointJoint: number

Static PrismaticJoint

PrismaticJoint: number

Static SliderJoint

SliderJoint: number

Static SpringJoint

SpringJoint: number

Static UniversalJoint

UniversalJoint: number

Static WheelJoint

WheelJoint: number

Methods

executeNativeFunction

  • executeNativeFunction(func: function): void
  • Execute a function that is physics-plugin specific.

    Parameters

    • func: function

      the function that will be executed. It accepts two parameters: the physics world and the physics joint.

        • (world: any, physicsJoint: any): void
        • Parameters

          • world: any
          • physicsJoint: any

          Returns void

    Returns void

setLimit

  • setLimit(upperLimit: number, lowerLimit?: number): void
  • Set the motor's limits. Attention, this function is plugin specific. Engines won't react 100% the same.

    Parameters

    • upperLimit: number
    • Optional lowerLimit: number

    Returns void

setMotor

  • setMotor(force?: number, maxForce?: number): void
  • Set the motor values. Attention, this function is plugin specific. Engines won't react 100% the same.

    Parameters

    • Optional force: number

      the force to apply

    • Optional maxForce: number

      max force for this motor.

    Returns void

Generated using TypeDoc