World:update
EditUpdates the World, advancing the physics simulation forward in time and moving all the colliders.
World:update(dt)Arguments
| Name | Type | Description |
| dt | number | The amount of time to advance the simulation forward. |
Returns
Nothing
Notes
This function must be called from the last thread that called World:setCallbacks. If no callbacks are set, then this can be called from any thread.
Example
function lovr.update(dt)
world:update(dt)
end