Navigation
API > API/Plugins > API/Plugins/AudioMotorSimStandardComponents
Applys additional surface friction based on the angle of the vehicle's velocity
| Name | UResistanceMotorSimComponent |
| Type | class |
| Header File | /Engine/Plugins/Runtime/AudioMotorSim/Source/AudioMotorSimStandardComponents/Public/ResistanceMotorSimComponent.h |
| Include Path | #include "ResistanceMotorSimComponent.h" |
Syntax
UCLASS (ClassGroup="AudioMotorSim", Meta=(BlueprintSpawnableComponent))
class UResistanceMotorSimComponent : public UAudioMotorSimComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → UAudioMotorSimComponent → UResistanceMotorSimComponent
Implements Interfaces
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MinSpeed | float | Minimum speed to apply this extra resistance. | ResistanceMotorSimComponent.h |
|
| SideSpeedFrictionCurve | FRuntimeFloatCurve | Additional friction to add based on lateral speed. | ResistanceMotorSimComponent.h |
|
| UpSpeedMaxFriction | float | How much to increase surface friction when driving straight up. Scales linearly based on driving angle. | ResistanceMotorSimComponent.h |
|
Functions
Public
Overridden from IAudioMotorSim
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Update
(
FAudioMotorSimInputContext& Input, |
ResistanceMotorSimComponent.h |