World:update

Update the state of the world.

Function

Synopsis

World:update( dt, velocityiterations, positioniterations )

Arguments

number dt
The time (in seconds) to advance the physics simulation.
number velocityiterations (8) Available since 11.0
The maximum number of steps used to determine the new velocities when resolving a collision.
number positioniterations (3) Available since 11.0
The maximum number of steps used to determine the new positions when resolving a collision.

Returns

Nothing.

See Also


© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/World:update