Update (Physics)

From OxeyeWiki

Revision as of 12:31, 7 February 2010 by Jeb (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

Daisymoon Physics Lib


Example


   physics:update(time, 10)

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox