Type Function Library physics.* Return value None Revision 2017.3060 Keywords frame-based physics, time-based physics, time scale, physics 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.
0
to get an approximate time-based physics simulation.-1
to get default behavior (frame-based).1/30
for 30 updates per second.1/60
for 60 updates per second.physics.setTimeStep( 0 ) -- Time-based physics simulation