Click or drag to resize
DigitalRuneSimulationGetNextTimeStep Method
Gets the size of the next simulation time step.

Namespace: DigitalRune.Physics
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
public void GetNextTimeStep(
	TimeSpan deltaTime,
	out TimeSpan totalTimeStepSize,
	out int numberOfSubTimeSteps
)

Parameters

deltaTime
Type: SystemTimeSpan
The current time step size.
totalTimeStepSize
Type: SystemTimeSpan
Total size of the next time step.
numberOfSubTimeSteps
Type: SystemInt32
The number of sub time steps.
Remarks
This method computes how much the next Update(TimeSpan) call will advance the simulation Time and returns the result in totalTimeStepSize. numberOfSubTimeSteps returns the number of internal time steps which will be performed. Since the simulation is always updated in fixed time steps, totalTimeStepSize is equal to numberOfSubTimeSteps * FixedTimeStep.
See Also