IPhysicsEnginePlugin

Hierarchy

  • IPhysicsEnginePlugin

Implemented by

Index

Properties

name

name: string

world

world: any

Methods

applyForce

applyImpulse

dispose

  • dispose(): void
  • Returns void

executeStep

generateJoint

generatePhysicsBody

getAngularVelocity

getBodyFriction

getBodyMass

getBodyRestitution

getBoxSizeToRef

getLinearVelocity

getRadius

getTimeStep

  • getTimeStep(): number
  • Returns number

isSupported

  • isSupported(): boolean
  • Returns boolean

removeJoint

removePhysicsBody

setAngularVelocity

setBodyFriction

setBodyMass

setBodyRestitution

setGravity

  • setGravity(gravity: Vector3): void
  • Parameters

    Returns void

setLimit

  • setLimit(joint: IMotorEnabledJoint, upperLimit: number, lowerLimit?: number, motorIndex?: number): void
  • Parameters

    • joint: IMotorEnabledJoint
    • upperLimit: number
    • Optional lowerLimit: number
    • Optional motorIndex: number

    Returns void

setLinearVelocity

setMotor

  • setMotor(joint: IMotorEnabledJoint, speed: number, maxForce?: number, motorIndex?: number): void
  • Parameters

    • joint: IMotorEnabledJoint
    • speed: number
    • Optional maxForce: number
    • Optional motorIndex: number

    Returns void

setPhysicsBodyTransformation

setTimeStep

  • setTimeStep(timeStep: number): void
  • Parameters

    • timeStep: number

    Returns void

setTransformationFromPhysicsBody

sleepBody

syncMeshWithImpostor

updateDistanceJoint

  • updateDistanceJoint(joint: PhysicsJoint, maxDistance: number, minDistance?: number): void
  • Parameters

    • joint: PhysicsJoint
    • maxDistance: number
    • Optional minDistance: number

    Returns void

wakeUpBody

Generated using TypeDoc