physics.setTimeScale()

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

The current public release is 2017.3068. This function is only available in daily build 2017.3073 or later.

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