Navigation
API > API/Plugins > API/Plugins/AudioMotorSimStandardComponents
Uses throttle input to run a physics simulation to drive RPM and shift gears when needed.
| Name | UMotorPhysicsSimComponent |
| Type | class |
| Header File | /Engine/Plugins/Runtime/AudioMotorSim/Source/AudioMotorSimStandardComponents/Public/MotorPhysicsSimComponent.h |
| Include Path | #include "MotorPhysicsSimComponent.h" |
Syntax
UCLASS (ClassGroup="AudioMotorSim", Meta=(BlueprintSpawnableComponent))
class UMotorPhysicsSimComponent : public UAudioMotorSimComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → UAudioMotorSimComponent → UMotorPhysicsSimComponent
Implements Interfaces
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bAlwaysDownshiftToZerothGear | bool | MotorPhysicsSimComponent.h |
|
|
| BrakingHorsePower | float | MotorPhysicsSimComponent.h |
|
|
| bUseInfiniteGears | bool | MotorPhysicsSimComponent.h |
|
|
| ClutchedDecelScale | float | How much more quickly the engine decelerates off-throttle while clutched | MotorPhysicsSimComponent.h |
|
| ClutchedForceModifier | float | MotorPhysicsSimComponent.h |
|
|
| ClutchedGearRatio | float | MotorPhysicsSimComponent.h |
|
|
| DownShiftStartRpm | float | MotorPhysicsSimComponent.h |
|
|
| EngineFriction | float | How much of the torque is loss due to engine friction. | MotorPhysicsSimComponent.h |
|
| EngineGearRatio | float | MotorPhysicsSimComponent.h |
|
|
| EngineTorque | float | MotorPhysicsSimComponent.h |
|
|
| GearRatios | TArray< float > | MotorPhysicsSimComponent.h |
|
|
| GroundFriction | float | Coefficient of Rolling Resistance. | MotorPhysicsSimComponent.h |
|
| InfiniteGearRatio | float | How much to scale gear ratio per gear past the max gear | MotorPhysicsSimComponent.h |
|
| OnGearChangedEvent | FOnGearChanged | MotorPhysicsSimComponent.h |
|
|
| RpmInterpSpeed | float | MotorPhysicsSimComponent.h |
|
|
| ThrottleInterpolationTime | float | MotorPhysicsSimComponent.h |
|
|
| UpShiftMaxRpm | float | MotorPhysicsSimComponent.h |
|
|
| Weight | float | MotorPhysicsSimComponent.h |
|
|
| WindResistancePerVelocity | float | MotorPhysicsSimComponent.h |
|
Functions
Public
Overridden from IAudioMotorSim
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ConfigMotorSim
(
const FInstancedStruct& InConfigData |
MotorPhysicsSimComponent.h | ||
virtual void Update
(
FAudioMotorSimInputContext& Input, |
MotorPhysicsSimComponent.h |