Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UCharacterMovementComponent
Description
Compute remaining time step given remaining time and current iterations. The last iteration (limited by MaxSimulationIterations) always returns the remaining time, which may violate MaxSimulationTimeStep.
| Name | GetSimulationTimeStep |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h |
| Include Path | #include "GameFramework/CharacterMovementComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp |
float GetSimulationTimeStep
(
float RemainingTime,
int32 Iterations
) const
The remaining time step to use for the next sub-step of iteration.
Parameters
| Name | Remarks |
|---|---|
| RemainingTime | Remaining time in the tick. |
| Iterations | Current iteration of the tick (starting at 1). |
See Also
-
MaxSimulationTimeStep
-
MaxSimulationIterations