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