TimeStep
Package: Libraries.Game.Physics · Inherits from: Libraries.Language.Object
This class contains settings that will change what is the time between physics updates and how many interations the position and velocity constraints will need to be solved for.
Actions
GetInverseTimeStep()
This action gets the 1/(time step).
Returns
number
GetPositionIterations()
This action returns the current position iterations setting.
Returns
integer
GetTimeStep()
This action gets the time step between physics updates.
Returns
number
GetTimeStepRatio()
This action gets the time step ratio.
Returns
number
GetVelocityIterations()
This action returns the current velocity iterations setting.
Returns
integer
IsWarmStarting()
This action returns whether the solver will warm start.
Returns
boolean
SetInverseTimeStep(number inverseTimeStep)
This action sets the 1/(time step).
Parameters
inverseTimeStepnumber
SetPositionIterations(integer positionIterations)
This action change the position iterations from default to a positionIterations passed in.
Parameters
positionIterationsinteger
SetTimeStep(number timeStep)
This action sets the time step between physics updates.
Parameters
timeStepnumber
SetTimeStepRatio(number timeStepRatio)
This action sets the time step ratio.
Parameters
timeStepRationumber
SetVelocityIterations(integer velocityIterations)
This action change the velocity iterations from default to a velocityIterations passed in.
Parameters
velocityIterationsinteger
SetWarmStarting(boolean warmStarting)
This action sets whether warm starting is desired.
Parameters
warmStartingboolean