physics.setTimeScale()

Type Function
Library physics.*
Return value none
Revision Release 2022.3683
Keywords physics, frame-based physics, time-based physics, time scale
See also physics.getTimeScale()
physics.setTimeStep()

Overview

Adjusts the physics simulation time flow with a multiplier.

Syntax

physics.setTimeScale( scale )
scale (required)

Number. Value at which to multiply the physics "time step" on each update.

Example

physics.setTimeScale( 0.75 )  -- Run physics simulation at 3/4 of normal speed