Namespace for physics simulation properties and methods in DX Engine.
Note: Make sure to
enable physics on items. By default, items ignore physics collisions and forces.
Defines the gravity acceleration of the physics simulation. Negative values cause items to fall 'up'.
Defines gravity direction of the
Toggles physics simulation. If
false, no physics are simulated in the
Defines simulation speed of the physics engine.
Low values (below
1) allow you to create slow-motion simulations.
Toggles real-time simulation of the physics engine.
If set to
true, physics is calculated using delta time, causing results
to be independent to device performance.
Creates an explosion force which applies to all physics-enabled items within
radius from the
power is negative, the force attracts items instead.
origin of explosion.
radius of explosion.
strength of explosion.
Generated using TypeDoc