Navigation
API > API/Plugins > API/Plugins/ChaosVehicles
Inheritance Hierarchy
- UChaosVehicleSimulation
- UChaosWheeledVehicleSimulation
References
| Module | ChaosVehicles |
| Header | /Engine/Plugins/Experimental/ChaosVehiclesPlugin/Source/ChaosVehicles/Public/ChaosWheeledVehicleMovementComponent.h |
| Include | #include "ChaosWheeledVehicleMovementComponent.h" |
Syntax
class UChaosWheeledVehicleSimulation : public UChaosVehicleSimulation
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bOverlapHit | ||
| TArray< FPhysicsConstraintHandle > | ConstraintHandles | Cached state that holds wheel data for this frame | |
| TArray< FOverlapResult > | OverlapResults | Cache trace overlap query | |
| FBox | QueryBox | ||
| FWheelState | WheelState |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ApplySuspensionForces
(
float DeltaTime, |
Calculate and apply chassis suspension forces | |
| void | ApplyWheelFrictionForces
(
float DeltaTime |
Calculate and apply lateral and longitudinal friction forces from wheels | |
| bool | ContainsTraces
(
const FBox& Box, |
||
| bool | |||
| void | PerformSuspensionTraces
(
const TArray< Chaos::FSuspensionTrace >& SuspensionTrace, |
Perform suspension ray/shape traces | |
| void | ProcessMechanicalSimulation
(
float DeltaTime |
Update the engine/transmission simulation | |
| void | ProcessSteering
(
const FControlInputs& ControlInputs |
Process steering mechanism |
Overridden from UChaosVehicleSimulation
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyInput
(
const FControlInputs& ControlInputs, |
Pass control Input to the vehicle systems | |
| bool | CanSimulate () |
Are enough vehicle systems specified such that physics vehicle simulation is possible | |
| void | DrawDebug3D () |
Draw 3D debug lines and things along side the 3D model | |
| void | FillOutputState
(
FChaosVehicleAsyncOutput& Output |
Fill the vehicle output state | |
| void | Init
(
TUniquePtr< Chaos::FSimpleWheeledVehicle >& PVehicleIn |
||
| void | TickVehicle
(
UWorld* WorldIn, |
UChaosVehicleSimulation | |
| void | UpdateConstraintHandles
(
TArray< FPhysicsConstraintHandle >& ConstraintHandlesIn |
||
| void | UpdateSimulation
(
float DeltaTime, |
Advance the vehicle simulation | |
| void | UpdateState
(
float DeltaTime, |
Update the vehicle state |