Update (Physics)
From OxeyeWiki
|
physics:update(timeStep, iterations) | ||
|
Updates the physics world and all activated entities. | ||
| Parameter | Expected Type | Description |
| timeStep | A number | The time since the last update, measured in seconds. |
| iterations | An integer | The number of iterations Box2D should take to find the most accurate physics simulations. 10 is a common value. |
| Returns | ||
|
Returns nothing. | ||
Example
physics:update(time, 10)