Navigation
API > API/Plugins > API/Plugins/ChaosVehicles
Inheritance Hierarchy
- UPawnMovementComponent
- UChaosVehicleMovementComponent
- UChaosWheeledVehicleMovementComponent
References
| Module | ChaosVehicles |
| Header | /Engine/Plugins/Experimental/ChaosVehiclesPlugin/Source/ChaosVehicles/Public/ChaosWheeledVehicleMovementComponent.h |
| Include | #include "ChaosWheeledVehicleMovementComponent.h" |
Syntax
UCLASS (ClassGroup=(Physics), Meta=(BlueprintSpawnableComponent),
HideCategories=(PlanarMovement, "Components|Movement|Planar", Activation, "Components|Activation"))
class UChaosWheeledVehicleMovementComponent : public UChaosVehicleMovementComponent
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bLegacyWheelFrictionPosition | ||
| bool | bMechanicalSimEnabled | ||
| bool | bSuspensionEnabled | ||
| bool | bWheelFrictionEnabled | ||
| FVehicleDifferentialConfig | DifferentialSetup | Differential | |
| FVehicleEngineConfig | EngineSetup | Engine | |
| FVehicleSteeringConfig | SteeringSetup | Transmission data | |
| FVehicleTransmissionConfig | TransmissionSetup | Transmission data | |
| TArray< TObjectPtr< class UChaosVehicleWheel > > | Wheels | Our instanced wheels. | |
| TArray< FChaosWheelSetup > | WheelSetups | Wheels to create | |
| FCollisionResponseContainer | WheelTraceCollisionResponses |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UChaosWheeledVehicleMovementComponent
(
const FObjectInitializer& ObjectInitializer |
UChaosWheeledVehicleMovementComponent |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BreakWheeledSnapshot
(
const FWheeledSnaphotData& Snapshot, |
||
| void | BreakWheelSnapshot
(
const FWheelSnapshot& Snapshot, |
||
| void | BreakWheelStatus
(
const FWheelStatus& Status, |
||
| void | CreateWheels () |
Instantiate and setup our wheel objects | |
| void | Release our wheel objects | ||
| void | EnableMechanicalSim
(
bool InState |
Enable or completely bypass the ProcessMechanicalSimulation call | |
| void | EnableSuspension
(
bool InState |
Enable or completely bypass the ApplySuspensionForces call | |
| void | EnableWheelFriction
(
bool InState |
Enable or completely bypass the ApplyWheelFrictionForces call | |
| void | Update. | ||
| float | Get current engine's max rotation speed | ||
| float | Get current engine's rotation speed | ||
| int | GetNumWheels () |
||
| UPhysicalMaterial * | GetPhysMaterial
(
int WheelIndex |
||
| FWheeledSnaphotData | GetSnapshot () |
Grab a snapshot of the vehicle instance dynamic state | |
| const FVector2D & | Get distances between wheels - primarily a debug display helper | ||
| FVector | GetWheelRestingPosition
(
const FChaosWheelSetup& WheelSetup |
Get the local position of the wheel at rest | |
| const FWheelStatus & | GetWheelState
(
int WheelIndex |
Get a wheels current simulation state | |
| FWheeledSnaphotData | MakeWheeledSnapshot
(
FTransform Transform, |
||
| FWheelSnapshot | MakeWheelSnapshot
(
float SuspensionOffset, |
||
| FWheelStatus | MakeWheelStatus
(
bool bInContact, |
||
| void | Display next debug page | ||
| void | PostLoad () |
||
| void | Display previous debug page | ||
| void | Maps UChaosVehicleWheel Axle to a wheel index | ||
| void | SetABSEnabled
(
int WheelIndex, |
||
| void | SetAffectedByBrake
(
int WheelIndex, |
||
| void | SetAffectedByEngine
(
int WheelIndex, |
||
| void | SetAffectedByHandbrake
(
int WheelIndex, |
||
| void | SetAffectedBySteering
(
int WheelIndex, |
||
| void | SetBrakeTorque
(
float BrakeTorque, |
||
| void | SetDifferentialFrontRearSplit
(
float FrontRearSlpit |
||
| void | SetDownforceCoefficient
(
float DownforceCoeff |
||
| void | SetDragCoefficient
(
float DragCoeff |
||
| void | SetDriveTorque
(
float DriveTorque, |
||
| void | SetMaxEngineTorque
(
float Torque |
Change handling via blueprint at runtime | |
| void | SetSnapshot
(
const FWheeledSnaphotData& SnapshotIn |
Set snapshot of vehicle instance dynamic state | |
| void | SetSuspensionParams
(
float Rate, |
||
| void | SetTorqueCombineMethod
(
ETorqueCombineMethod InCombineMethod, |
||
| void | SetTractionControlEnabled
(
int WheelIndex, |
||
| void | SetupSuspension
(
TUniquePtr< Chaos::FSimpleWheeledVehicle >& PVehicle |
Setup calculated suspension parameters | |
| void | Set up the chassis and wheel shapes | ||
| void | SetWheelClass
(
int WheelIndex, |
||
| void | SetWheelFrictionMultiplier
(
int WheelIndex, |
||
| void | SetWheelHandbrakeTorque
(
int WheelIndex, |
||
| void | SetWheelMaxBrakeTorque
(
int WheelIndex, |
||
| void | SetWheelMaxSteerAngle
(
int WheelIndex, |
||
| void | SetWheelRadius
(
int WheelIndex, |
||
| void | SetWheelSlipGraphMultiplier
(
int WheelIndex, |
||
| 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 |
Overridden from UChaosVehicleMovementComponent
| Type | Name | Description | |
|---|---|---|---|
| bool | Are the configuration references configured sufficiently that the vehicle can be created | ||
| void | Re-Compute any runtime constants values that rely on setup data | ||
| TUniquePtr< Chaos::FSimpleWheeledVehicle > | |||
| void | Create and setup the Chaos vehicle | ||
| void | DrawDebug
(
UCanvas* Canvas, |
Draw 2D debug text graphs on UI for the wheels, suspension and other systems | |
| void | Skeletal mesh needs some special handling in the vehicle case | ||
| float | GetSuspensionOffset
(
int WheelIndex |
||
| void | Used to create any physics engine information for this component | ||
| void | Used to shut down and pysics engine structure for this component | ||
| void | ParallelUpdate
(
float DeltaSeconds |
Get output data from Physics Thread. | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
End UObject interface Respond to a property change in editor | |
| void | |||
| void | Get Collision ResponseToChannels container for this component | ||
| void | SetupVehicle
(
TUniquePtr< Chaos::FSimpleWheeledVehicle >& PVehicle |
Allocate and setup the Chaos vehicle | |
| void | Update
(
float DeltaTime |
Fill Async input state |
Constants
| Name | Description |
|---|---|
| DebugPage |