Difference between revisions of "World:update"

m (1 revision: Importing from potato (again).)
(0.11.0 -> 11.0)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
 
Update the state of the world.
 
Update the state of the world.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
World:update( dt )
+
World:update( dt, velocityiterations, positioniterations )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
 
{{param|number|dt|The time (in seconds) to advance the physics simulation.}}
 
{{param|number|dt|The time (in seconds) to advance the physics simulation.}}
 +
{{New feature|11.0|
 +
{{param|number|velocityiterations (8)|The maximum number of steps used to determine the new velocities when resolving a collision.}}
 +
{{param|number|positioniterations (3)|The maximum number of steps used to determine the new positions when resolving a collision.}}
 +
|110}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
Line 14: Line 17:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Update the state of the world.}}
 
{{#set:Description=Update the state of the world.}}
 +
{{#set:Since=000}}
 +
== Other Languages ==
 +
{{i18n|World:update}}

Latest revision as of 14:15, 22 December 2018

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.
Available since LÖVE 11.0
number velocityiterations (8)
The maximum number of steps used to determine the new velocities when resolving a collision.
number positioniterations (3)
The maximum number of steps used to determine the new positions when resolving a collision.

Returns

Nothing.

See Also


Other Languages