Type Function Library physics.* Return value none Revision 2017.3178 Keywords physics, frame-based physics, time-based physics, time scale See also physics.setScale()
Specifies either a frame-based (approximated) physics simulation or a
physics.setTimeStep( dt )
Number. Value of physics "time step" in seconds, meaning the time between each physics update in seconds.
0to get an approximate time-based physics simulation.
-1to get default behavior (frame-based).
1/30for 30 updates per second.
1/60for 60 updates per second.
physics.setTimeStep( 0 ) -- Time-based physics simulation