| SimulationGetNextTimeStep Method |
Gets the size of the next simulation time step.
Namespace: DigitalRune.PhysicsAssembly: 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
)
Public Sub GetNextTimeStep (
deltaTime As TimeSpan,
<OutAttribute> ByRef totalTimeStepSize As TimeSpan,
<OutAttribute> ByRef numberOfSubTimeSteps As Integer
)
public:
void GetNextTimeStep(
TimeSpan deltaTime,
[OutAttribute] TimeSpan% totalTimeStepSize,
[OutAttribute] int% numberOfSubTimeSteps
)
member GetNextTimeStep :
deltaTime : TimeSpan *
totalTimeStepSize : TimeSpan byref *
numberOfSubTimeSteps : int byref -> unit
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