Update (Physics)

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
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...')

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.

Daisymoon Physics Lib


Example


   physics:update(time, 10)

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox