Update (Physics)
From OxeyeWiki
(Difference between revisions)
Jeb (Talk | contribs)
(Created page with '{{PhysicsMethod| physics:update(timeStep, iterations) | Updates the physics world and all activated entities. | {{MethodParam|timeStep|A number|The time since the last update, me...')
(Created page with '{{PhysicsMethod| physics:update(timeStep, iterations) | Updates the physics world and all activated entities. | {{MethodParam|timeStep|A number|The time since the last update, me...')
Latest revision as of 12:31, 7 February 2010
|
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)