class PhysicsEngine
Name | Type | Description | |
---|---|---|---|
gravity | Nullable<Vector3> | ||
optional | _physicsPlugin | IPhysicsEnginePlugin |
Name | Type | Description | |
---|---|---|---|
gravity | Vector3 |
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
Name | Type | Description | |
---|---|---|---|
optional | newTimeStep | number |
Get the time step of the physics engine.
Adding a new impostor for the impostor tracking.
This will be done by the impostor itself.
Name | Type | Description | |
---|---|---|---|
impostor | PhysicsImpostor |
Remove an impostor from the engine.
This impostor and its mesh will not longer be updated by the physics engine.
Name | Type | Description | |
---|---|---|---|
impostor | PhysicsImpostor |
Add a joint to the physics engine
Name | Type | Description | |
---|---|---|---|
mainImpostor | PhysicsImpostor | ||
connectedImpostor | PhysicsImpostor | ||
joint | PhysicsJoint |
Name | Type | Description | |
---|---|---|---|
mainImpostor | PhysicsImpostor | ||
connectedImpostor | PhysicsImpostor | ||
joint | PhysicsJoint |
Name | Type | Description | |
---|---|---|---|
object | IPhysicsEnabledObject |
Name | Type | Description | |
---|---|---|---|
body | any |