MCPcopy Create free account
hub / github.com/coronalabs/corona / setTimeStep

Function setTimeStep

librtt/Rtt_LuaLibPhysics.cpp:2797–2811  ·  view source on GitHub ↗

physics.setTimeStep( dt ) Sets time step of physics simulator to 'dt' (in seconds) for each enterFrame. If 'dt' is set to 0, then simulation is time-based with an error in time being the desired frame interval. If 'dt' is < 0, then the time step is set to the desired frame interval.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

lua_typeFunction · 0.85
lua_tonumberFunction · 0.85
SetTimeStepMethod · 0.80
CoronaLuaErrorFunction · 0.50

Tested by

no test coverage detected