Navigation
API > API/Plugins > API/Plugins/ChaosVehicles
Inheritance Hierarchy
- UChaosVehicleSimulation
- UChaosWheeledVehicleSimulation
References
| Module | ChaosVehicles |
| Header | /Engine/Plugins/Experimental/ChaosVehiclesPlugin/Source/ChaosVehicles/Public/ChaosVehicleMovementComponent.h |
| Include | #include "ChaosVehicleMovementComponent.h" |
Syntax
class UChaosVehicleSimulation
Variables
| Type | Name | Description | |
|---|---|---|---|
| FVehicleInputRateConfig | BrakeInputRate | ||
| FDeferredForces | DeferredForces | ||
| FVehicleInputRateConfig | HandbrakeInputRate | ||
| FVehicleInputRateConfig | PitchInputRate | ||
| TUniquePtr< Chaos::FSimpleWheeledVehicle > | PVehicle | #todo: this isn't very configurable | |
| Chaos::FRigidBodyHandle_Internal * | RigidHandle | Physics Thread Representation of chassis rigid body. | |
| FVehicleInputRateConfig | RollInputRate | ||
| FVehicleInputRateConfig | SteeringInputRate | ||
| FVehicleInputRateConfig | ThrottleInputRate | ||
| FControlInputs | VehicleInputs | Current control inputs that is being used on the PT | |
| FVehicleState | VehicleState | ||
| UWorld * | World | ||
| FVehicleInputRateConfig | YawInputRate |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddForce
(
const FVector& Force, |
Add a force to this vehicle | |
| void | AddForceAtPosition
(
const FVector& Force, |
Add a force at a particular position (world space when bIsLocalForce = false, body space otherwise) | |
| void | AddImpulse
(
const FVector& Impulse, |
Add an impulse to this vehicle | |
| void | AddImpulseAtPosition
(
const FVector& Impulse, |
Add an impulse to this vehicle and a particular world position | |
| void | AddTorqueInRadians
(
const FVector& Torque, |
Add a torque to this vehicle | |
| void | ApplyAerodynamics
(
float DeltaTime |
Apply aerodynamic forces to vehicle body | |
| void | ApplyAerofoilForces
(
float DeltaTime |
Apply Aerofoil forces to vehicle body | |
| void | ApplyDeferredForces
(
Chaos::FRigidBodyHandle_Internal* Handle |
Apply the defered forces onto the vehicles | |
| void | ApplyInput
(
const FControlInputs& ControlInputs, |
Pass control Input to the vehicle systems | |
| void | ApplyThrustForces
(
float DeltaTime |
Apply Thruster forces to vehicle body | |
| void | ApplyTorqueControl
(
float DeltaTime, |
Apply direct control over vehicle body rotation | |
| bool | CanSimulate () |
Are enough vehicle systems specified such that physics vehicle simulation is possible | |
| void | DrawDebug3D () |
Draw debug text for the wheels and suspension | |
| void | FillOutputState
(
FChaosVehicleAsyncOutput& Output |
Fill the vehicle output state | |
| void | Init
(
TUniquePtr< Chaos::FSimpleWheeledVehicle >& PVehicleIn |
||
| void | InitializeSuspension
(
int WheelIndex, |
Reinitialize the physics suspension at runtime | |
| void | InitializeWheel
(
int WheelIndex, |
Reinitialize a wheel at runtime | |
| void | SyncHistoryInputs
(
const FChaosVehicleAsyncInput& InputData, |
Update the async inputs and the history ones | |
| 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 |