Navigation
API > API/Plugins > API/Plugins/ChaosModularVehicleEngine > API/Plugins/ChaosModularVehicleEngine/ChaosModularVehicle
Inheritance Hierarchy
- UPawnMovementComponent
- UModularVehicleBaseComponent
References
| Module | ChaosModularVehicleEngine |
| Header | /Engine/Plugins/Experimental/ChaosModularVehicle/Source/ChaosModularVehicleEngine/Public/ChaosModularVehicle/ModularVehicleBaseComponent.h |
| Include | #include "ChaosModularVehicle/ModularVehicleBaseComponent.h" |
Syntax
UCLASS (ClassGroup=(Physics), Meta=(BlueprintSpawnableComponent),
HideCategories=(PlanarMovement, "Components|Movement|Planar", Activation, "Components|Activation"))
class UModularVehicleBaseComponent : public UPawnMovementComponent
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< AActor * > | ActorsToIgnore | ||
| float | AngularDamping | Use to naturally decelerate angular velocity of objects | |
| FVector | AutoAddOverlappingBoxSize | The size of the overlap box testing for nearby components in the world | |
| bool | bAutoAddComponentsFromWorld | Grab nearby components and add them to the cluster union representing the vehicle | |
| bool | bKeepVehicleAwake | ||
| float | BoostInput | Boost output to physics system. Range 0...1. | |
| FModularVehicleInputRateConfig | BoostInputRate | Rate at which input can rise and fall. | |
| float | BrakeInput | Brake output to physics system. Range 0...1. | |
| FModularVehicleInputRateConfig | BrakeInputRate | Rate at which input brake can rise and fall. | |
| bool | bRequiresControllerForInputs | Bypass the need for a controller in order for the controls to be processed. | |
| bool | bSuspensionTraceComplex | ||
| UClusterUnionComponent * | ClusterUnionComponent | ||
| float | ClutchInput | Clutch output to physics system. Range 0...1. | |
| TMap< TObjectKey< UPrimitiveComponent >, FVehicleComponentData > | ComponentToPhysicsObjects | ||
| TArray< FConstructionData > | ConstructionDatas | ||
| FModularVehicleAsyncInput * | CurAsyncInput | ||
| FModularVehicleAsyncOutput * | CurAsyncOutput | ||
| EChaosAsyncVehicleDataType | CurAsyncType | ||
| int32 | CurrentGear | The currently selected gear. | |
| int32 | DelayClusteringCount | ||
| float | DriftInput | Boost output to physics system. Range 0...1. | |
| FModularVehicleInputRateConfig | DriftInputRate | Rate at which input can rise and fall. | |
| float | EngineRPM | The engine RPM. | |
| float | EngineTorque | The engine Torque. | |
| float | HandbrakeInput | Handbrake output to physics system. Range 0...1. | |
| FModularVehicleInputRateConfig | HandbrakeInputRate | Rate at which input handbrake can rise and fall. | |
| TArray< FModularVehicleInputRate > | InputInterpolationRates | ||
| float | LinearDamping | Use to naturally decelerate linear velocity of objects | |
| TObjectPtr< UNetworkPhysicsComponent > | NetworkPhysicsComponent | ||
| FModularVehicleAsyncOutput * | NextAsyncOutput | ||
| float | OutputInterpAlpha | ||
| TArray< FAsyncOutputWrapper > | OutputsWaitingOn | ||
| float | PitchInput | Body Pitch output to physics system. Range -1...1. | |
| FModularVehicleInputRateConfig | PitchInputRate | Rate at which input pitch can rise and fall. | |
| TUniquePtr< FPhysicsVehicleOutput > | PVehicleOutput | ||
| float | RawBoostInput | What the player has the yaw set to. Range -1...1. | |
| float | RawBrakeInput | What the player has the brake set to. Range -1...1. | |
| float | RawClutchInput | What the player has the clutch set to. Range -1...1. | |
| float | RawDriftInput | What the player has the yaw set to. Range -1...1. | |
| int32 | RawGearInput | Latest gear selected | |
| float | RawHandbrakeInput | What the player has the brake set to. Range -1...1. | |
| float | RawPitchInput | What the player has the pitch set to. Range -1...1. | |
| bool | RawReverseInput | Reverse direction enbaled | |
| float | RawRollInput | What the player has the roll set to. Range -1...1. | |
| float | RawSteeringInput | What the player has the steering set to. Range -1...1. | |
| float | RawThrottleInput | What the player has the accelerator set to. Range -1...1. | |
| float | RawYawInput | What the player has the yaw set to. Range -1...1. | |
| FModularReplicatedState | ReplicatedState | Replicated state of vehicle | |
| bool | ReverseInput | Reverse state. | |
| float | RollInput | Body Roll output to physics system. Range -1...1. | |
| FModularVehicleInputRateConfig | RollInputRate | Rate at which input roll can rise and fall. | |
| float | SteeringInput | Steering output to physics system. Range -1...1. | |
| FModularVehicleInputRateConfig | SteeringInputRate | Rate at which input steering can rise and fall. | |
| FCollisionResponseContainer | SuspensionTraceCollisionResponses | ||
| float | ThrottleInput | Accelerator output to physics system. Range 0...1. | |
| FModularVehicleInputRateConfig | ThrottleInputRate | Rate at which input throttle can rise and fall. | |
| TUniquePtr< FModularVehicleSimulationCU > | VehicleSimulationPT | ||
| float | YawInput | Body Yaw output to physics system. Range -1...1. | |
| FModularVehicleInputRateConfig | YawInputRate | Rate at which input yaw can rise and fall. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UModularVehicleBaseComponent
(
const FObjectInitializer& ObjectInitializer |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ActionTreeUpdates
(
Chaos::FSimTreeUpdates* NextTreeUpdates |
||
| void | AddActorsToIgnore
(
TArray< AActor* >& ActorsIn |
||
| void | AddComponentToSimulation
(
UPrimitiveComponent* Component, |
Adds any associated simulation components to the ModularVehicleSimulation | |
| void | |||
| void | |||
| void | BeginPlay () |
||
| void | CreateAssociatedSimComponents
(
const UPrimitiveComponent* AttachedComponent, |
||
| void | CreateConstraint
(
Chaos::ISimulationModuleBase* NewModule |
||
| void | |||
| void | DecreaseThrottleInput
(
float ThrottleDelta |
Decrease the vehicle throttle position [throttle range normalized 0 to 1] | |
| void | |||
| void | DestroyConstraint
(
int ConstraintIndex |
||
| void | |||
| void | EnableConstraint
(
int ConstraintIndex, |
||
| void | |||
| bool | FindAndRemoveNextPendingUpdate
(
int32 NextIndex, |
||
| int32 | FindComponentAddOrder
(
UPrimitiveComponent* InComponent |
||
| const FTransform & | |||
| int32 | |||
| void | GetLifetimeReplicatedProps
(
TArray< FLifetimeProperty >& OutLifetimeProps |
||
| IPhysicsProxyBase * | |||
| APlayerController * | |||
| void | IncreaseThrottleInput
(
float ThrottleDelta |
Increase the vehicle throttle position [throttle range normalized 0 to 1] | |
| bool | |||
| bool | IsReversing () |
||
| void | |||
| void | |||
| void | ParallelUpdate
(
float DeltaTime |
||
| TUniquePtr< FPhysicsVehicleOutput > & | |||
| void | PreTickGT
(
float DeltaTime |
||
| void | ProcessControls
(
float DeltaTime |
Handle stand-alone and networked mode control inputs | |
| void | RemoveActorsToIgnore
(
TArray< AActor* >& ActorsIn |
||
| void | RemoveComponentFromSimulation
(
UPrimitiveComponent* Component, |
Removes any associated simulation components from the ModularVehicleSimulation | |
| void | ServerUpdateState
(
float InSteeringInput, |
Pass current state to server | |
| void | SetBoostInput
(
float Boost |
Set the user input for the vehicle boost [range 0 to 1] | |
| void | SetBrakeInput
(
float Brake |
Set the user input for the vehicle Brake [range 0 to 1] | |
| void | SetClusterComponent
(
UClusterUnionComponent* InPhysicalComponent |
||
| TUniquePtr< FModularVehicleAsyncInput > | SetCurrentAsyncData
(
int32 InputIdx, |
||
| void | SetCurrentAsyncDataInternal
(
FModularVehicleAsyncInput* CurInput, |
||
| void | SetDriftInput
(
float Drift |
Set the user input for the vehicle drift [range 0 to 1] | |
| void | SetGearInput
(
int32 Gear |
Set the gear directly | |
| void | SetHandbrakeInput
(
float Handbrake |
Set the user input for handbrake | |
| void | SetLocallyControlled
(
bool bLocallyControlledIn |
||
| void | SetPitchInput
(
float Pitch |
Set the user input for the vehicle pitch [range -1 to 1] | |
| void | SetReverseInput
(
bool Reverse |
||
| void | SetRollInput
(
float Roll |
Set the user input for the vehicle roll [range -1 to 1] | |
| void | SetSteeringInput
(
float Steering |
Set the user input for the vehicle steering [range -1 to 1] | |
| void | SetThrottleInput
(
float Throttle |
CONTROLS Set the user input for the vehicle throttle [range 0 to 1] | |
| void | SetWheelTraceAllChannels
(
ECollisionResponse NewResponse |
Set all channels to the specified response - for wheel raycasts | |
| void | SetWheelTraceResponseToChannel
(
ECollisionChannel Channel, |
Set the response of this body to the supplied settings - for wheel raycasts | |
| void | SetYawInput
(
float Yaw |
Set the user input for the vehicle yaw [range -1 to 1] | |
| bool | |||
| void | ShowDebugInfo
(
AHUD* HUD, |
||
| void | TickComponent
(
float DeltaTime, |
||
| void | Update
(
float DeltaTime |
||
| void | |||
| void | UpdateState
(
float DeltaTime |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FAsyncOutputWrapper |