Difference between revisions of "B2.World:step"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Take a time step. This performs collision detection, integration, and constraint solution.<br /...")
 
Line 6: Line 6:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
= b2.World:step(timeStepvelocityIterationspositionIterations,)
+
b2.World:step(timeStep,velocityIterations,positionIterations)
 
</source>
 
</source>
'''timeStep:''' (number) the amount of time to simulate, this should not vary ''''''<br/>
+
'''timeStep''': (number) the amount of time to simulate, this should not vary ''''''<br/>
'''velocityIterations:''' (number) for the velocity constraint solver ''''''<br/>
+
'''velocityIterations''': (number) for the velocity constraint solver ''''''<br/>
'''positionIterations:''' (number) for the position constraint solver ''''''<br/>
+
'''positionIterations''': (number) for the position constraint solver ''''''<br/>

Revision as of 11:21, 23 August 2018

Available since: Gideros 2011.6

Description


Take a time step. This performs collision detection, integration, and constraint solution.

 b2.World:step(timeStep,velocityIterations,positionIterations)

'timeStep: (number) the amount of time to simulate, this should not vary '
'velocityIterations: (number) for the velocity constraint solver '
'positionIterations: (number) for the position constraint solver '