Navigation
API > API/Plugins > API/Plugins/ChaosVehicles
Vehicle states data that will be used in the states history to rewind the simulation at some point inn time
| Name | FNetworkVehicleStates |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/ChaosVehiclesPlugin/Source/ChaosVehicles/Public/ChaosVehicleManagerAsyncCallback.h |
| Include Path | #include "ChaosVehicleManagerAsyncCallback.h" |
Syntax
USTRUCT ()
struct FNetworkVehicleStates : public FNetworkPhysicsData
Inheritance Hierarchy
- FNetworkPhysicsPayload → FNetworkPhysicsData → FNetworkVehicleStates
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| EngineOmega | float | Engine angular velocity | ChaosVehicleManagerAsyncCallback.h | |
| StateLastVelocity | FVector | Vehicle state last velocity | ChaosVehicleManagerAsyncCallback.h | |
| SuspensionAveragedCount | TArray< int32 > | Suspension averaged count for smoothing | ChaosVehicleManagerAsyncCallback.h | |
| SuspensionAveragedLength | TArray< float > | Suspension averaged length for smoothing | ChaosVehicleManagerAsyncCallback.h | |
| SuspensionAveragedNum | TArray< int32 > | Suspension averaged number for smoothing | ChaosVehicleManagerAsyncCallback.h | |
| SuspensionLastDisplacement | TArray< float > | Suspension latest displacement to be used while simulating | ChaosVehicleManagerAsyncCallback.h | |
| SuspensionLastSpringLength | TArray< float > | Suspension latest spring length to be used while simulating | ChaosVehicleManagerAsyncCallback.h | |
| WheelsAngularPosition | TArray< float > | Angular position for each wheels | ChaosVehicleManagerAsyncCallback.h | |
| WheelsOmega | TArray< float > | Angular velocity for each wheels | ChaosVehicleManagerAsyncCallback.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool NetSerialize
(
FArchive& Ar, |
Serialize data function that will be used to transfer the struct across the network | ChaosVehicleManagerAsyncCallback.h |
Overridden from FNetworkPhysicsData
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ApplyData
(
UActorComponent* NetworkComponent |
Apply the data onto the network physics component | ChaosVehicleManagerAsyncCallback.h | |
virtual void BuildData
(
const UActorComponent* NetworkComponent |
Build the data from the network physics component | ChaosVehicleManagerAsyncCallback.h | |
virtual void InterpolateData
(
const FNetworkPhysicsData& MinData, |
Interpolate the data in between two inputs data | ChaosVehicleManagerAsyncCallback.h |
Overridden from FNetworkPhysicsPayload
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FString DebugData() |
Return string with state debug data | ChaosVehicleManagerAsyncCallback.h |