unreal.AudioMotorSimRuntimeContext

class unreal.AudioMotorSimRuntimeContext(shifting: bool = False, gear: int = 0, rpm: float = 0.0, volume: float = 0.0, pitch: float = 0.0)

Bases: StructBase

properties that represent the current state of the motor sim, and persist between updates

C++ Source:

  • Plugin: AudioMotorSim

  • Module: AudioMotorSim

  • File: AudioMotorSimTypes.h

Editor Properties: (see get_editor_property/set_editor_property)

  • gear (int32): [Read-Write] which gear the motor is in, if it uses gears

  • pitch (float): [Read-Write] pitch to set on the output component

  • rpm (float): [Read-Write] normalized RPM [0-1] of the motor

  • shifting (bool): [Read-Write] true while the motor is performing a gear shift

  • volume (float): [Read-Write] volume to set on the output component

property gear: int

[Read-Write] which gear the motor is in, if it uses gears

Type:

(int32)

property pitch: float

[Read-Write] pitch to set on the output component

Type:

(float)

property rpm: float

[Read-Write] normalized RPM [0-1] of the motor

Type:

(float)

property shifting: bool

[Read-Write] true while the motor is performing a gear shift

Type:

(bool)

property volume: float

[Read-Write] volume to set on the output component

Type:

(float)