Type Function Library physics.* Return value none Revision Release 2024.3703 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.
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