PhysicsEngine

Hierarchy

  • PhysicsEngine

Index

Constructors

constructor

Properties

gravity

gravity: Vector3

Static Epsilon

Epsilon: number

Methods

addImpostor

  • Adding a new impostor for the impostor tracking. This will be done by the impostor itself.

    Parameters

    Returns void

addJoint

  • Add a joint to the physics engine

    Parameters

    Returns void

dispose

  • dispose(): void
  • Returns void

getImpostorForPhysicsObject

getImpostorWithPhysicsBody

getImpostors

getPhysicsPlugin

getPhysicsPluginName

  • getPhysicsPluginName(): string
  • Returns string

getTimeStep

  • getTimeStep(): number
  • Get the time step of the physics engine.

    Returns number

removeImpostor

  • Remove an impostor from the engine. This impostor and its mesh will not longer be updated by the physics engine.

    Parameters

    Returns void

removeJoint

setGravity

  • setGravity(gravity: Vector3): void
  • Parameters

    Returns void

setTimeStep

  • setTimeStep(newTimeStep?: number): void
  • Set the time step of the physics engine. default is 1/60. To slow it down, enter 1/600 for example. To speed it up, 1/30

    Parameters

    • Optional newTimeStep: number

      the new timestep to apply to this world.

    Returns void

Generated using TypeDoc