Navigation
API > API/Plugins > API/Plugins/GameplayCameras > API/Plugins/GameplayCameras/Math > API/Plugins/GameplayCameras/Math/FCriticalDamper > API/Plugins/GameplayCameras/Math/FCriticalDamper/Update
References
| Module | GameplayCameras |
| Header | /Engine/Plugins/Cameras/GameplayCameras/Source/GameplayCameras/Public/Math/CriticalDamper.h |
| Include | #include "Math/CriticalDamper.h" |
| Source | /Engine/Plugins/Cameras/GameplayCameras/Source/GameplayCameras/Private/Math/CriticalDamper.cpp |
float Update
(
float PreviousDamped,
float NextTarget,
float DeltaTime
)
Remarks
Updates the system for damping towards arbitrary non-zero values. This call takes last frame's target and this frame's target. The difference between the two indicates by how much the target was forcibly moved, if at all. The result (also available with GetX0()) is returned relative to the current frame's target (i.e. the second parameter). The new damped value.
Parameters
| Name | Description |
|---|---|
| PreviousDamped | The previous value returned by this function. |
| NextTarget | The new target for the system. |
| DeltaTime | The elapsed time. |