Navigation
API > API/Plugins > API/Plugins/GameplayCameras > API/Plugins/GameplayCameras/FCriticalDamper
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float Update
(
float DeltaTime |
Updates the system to make it converge towards 0. | Math/CriticalDamper.h | |
float Update
(
float X, |
Updates the system, given a possibly forced position the system was moved to. | Math/CriticalDamper.h | |
float Update
(
float PreviousDamped, |
Updates the system for damping towards arbitrary non-zero values. | Math/CriticalDamper.h |
Update(float)
Description
Updates the system to make it converge towards 0.
| Name | Update |
| Type | function |
| Header File | /Engine/Plugins/Cameras/GameplayCameras/Source/GameplayCameras/Public/Math/CriticalDamper.h |
| Include Path | #include "Math/CriticalDamper.h" |
| Source | /Engine/Plugins/Cameras/GameplayCameras/Source/GameplayCameras/Private/Math/CriticalDamper.cpp |
float Update
(
float DeltaTime
)
Parameters
| Name | Remarks |
|---|---|
| DeltaTime | The elapsed time. |
Update(float, float)
Description
Updates the system, given a possibly forced position the system was moved to. The forced position should be last frame's result (also available with GetX0()) if the target wasn't moved. The system will converge towards 0.
| Name | Update |
| Type | function |
| Header File | /Engine/Plugins/Cameras/GameplayCameras/Source/GameplayCameras/Public/Math/CriticalDamper.h |
| Include Path | #include "Math/CriticalDamper.h" |
| Source | /Engine/Plugins/Cameras/GameplayCameras/Source/GameplayCameras/Private/Math/CriticalDamper.cpp |
float Update
(
float X,
float DeltaTime
)
The new position of the system.
Parameters
| Name | Remarks |
|---|---|
| X | The forced position of the system. |
| DeltaTime | The elapsed time. |
Update(float, float, float)
Description
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).
| Name | Update |
| Type | function |
| Header File | /Engine/Plugins/Cameras/GameplayCameras/Source/GameplayCameras/Public/Math/CriticalDamper.h |
| Include Path | #include "Math/CriticalDamper.h" |
| Source | /Engine/Plugins/Cameras/GameplayCameras/Source/GameplayCameras/Private/Math/CriticalDamper.cpp |
float Update
(
float PreviousDamped,
float NextTarget,
float DeltaTime
)
The new damped value.
Parameters
| Name | Remarks |
|---|---|
| PreviousDamped | The previous value returned by this function. |
| NextTarget | The new target for the system. |
| DeltaTime | The elapsed time. |