Physics System
When the physics world iterates, physical calculations will be made on physical elements, such as calculating whether each object collides and the force of the object. When the calculation is completed, the physics system will update the physics world to the scene world, so that the game objects will generate corresponding physical behaviors.
Scene World and Physics World:
The properties of the physics system can only be set through the code for the time being. A setting panel will be added in the future, please pay attention to the update announcement.
Property | Signature | Description |
---|---|---|
resetAccumulator | (time=0)=>void | Reset the accumulator of time to given value |