unreal.FOscillator

class unreal.FOscillator(amplitude=0.0, frequency=0.0, waveform=OscillatorWaveform.SINE_WAVE)

Bases: unreal.StructBase

Defines oscillation of a single number.

C++ Source:

  • Module: Engine
  • File: CameraShake.h

Editor Properties: (see get_editor_property/set_editor_property)

  • amplitude (float): [Read-Write] Amplitude of the sinusoidal oscillation.
  • frequency (float): [Read-Write] Frequency of the sinusoidal oscillation.
  • initial_offset (InitialOscillatorOffset): [Read-Write] Defines how to begin (either at zero, or at a randomized value.
  • waveform (OscillatorWaveform): [Read-Write] Type of waveform to use for oscillation.
amplitude

(float) – [Read-Write] Amplitude of the sinusoidal oscillation.

frequency

(float) – [Read-Write] Frequency of the sinusoidal oscillation.

waveform

(OscillatorWaveform) – [Read-Write] Type of waveform to use for oscillation.