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