Navigation
API > API/Plugins > API/Plugins/EngineCameras
Defines oscillation of a single number.
| Name | FFOscillator |
| Type | struct |
| Header File | /Engine/Plugins/Cameras/EngineCameras/Source/EngineCameras/Public/Shakes/LegacyCameraShake.h |
| Include Path | #include "Shakes/LegacyCameraShake.h" |
Syntax
USTRUCT (BlueprintType )
struct FFOscillator
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FFOscillator() |
Shakes/LegacyCameraShake.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Amplitude | float | Amplitude of the sinusoidal oscillation. | Shakes/LegacyCameraShake.h |
|
| Frequency | float | Frequency of the sinusoidal oscillation. | Shakes/LegacyCameraShake.h |
|
| InitialOffset | TEnumAsByte< enum EInitialOscillatorOffset > | Defines how to begin (either at zero, or at a randomized value. | Shakes/LegacyCameraShake.h |
|
| Waveform | EOscillatorWaveform | Type of waveform to use for oscillation. | Shakes/LegacyCameraShake.h |
|
Functions
Public
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static float GetInitialOffset
(
FFOscillator const& Osc |
Returns the initial value of the oscillator. | Shakes/LegacyCameraShake.h | |
static float GetOffsetAtTime
(
FFOscillator const& Osc, |
Returns the offset at the given time | Shakes/LegacyCameraShake.h | |
static float UpdateOffset
(
FFOscillator const& Osc, |
Advances the oscillation time and returns the current value. | Shakes/LegacyCameraShake.h | |
static float UpdateOffset
(
FFOscillator const& Osc, |
Advances the oscillation time and returns the current value. | Shakes/LegacyCameraShake.h |