unreal.AudioMotorSimRuntimeContext¶
- class unreal.AudioMotorSimRuntimeContext(shifting: bool = False, gear: int = 0, virtual_speed_kmh: float = 0.0, rpm: float = 0.0, volume: float = 0.0, pitch: float = 0.0)¶
Bases:
StructBaseproperties 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 gearspitch(float): [Read-Write] pitch to set on the output componentrpm(float): [Read-Write] normalized RPM [0-1] of the motorshifting(bool): [Read-Write] true while the motor is performing a gear shiftvirtual_speed_kmh(float): [Read-Only] the virtual speed calculated by the Motor Physics Simulationvolume(float): [Read-Write] volume to set on the output component