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

  • inverseTimeStep number

SetPositionIterations(integer positionIterations)

This action change the position iterations from default to a positionIterations passed in.

Parameters

  • positionIterations integer

SetTimeStep(number timeStep)

This action sets the time step between physics updates.

Parameters

  • timeStep number

SetTimeStepRatio(number timeStepRatio)

This action sets the time step ratio.

Parameters

  • timeStepRatio number

SetVelocityIterations(integer velocityIterations)

This action change the velocity iterations from default to a velocityIterations passed in.

Parameters

  • velocityIterations integer

SetWarmStarting(boolean warmStarting)

This action sets whether warm starting is desired.

Parameters

  • warmStarting boolean

Inherited Actions

3 actions from Libraries.Language.Object