Navigation
API > API/Plugins > API/Plugins/ChaosVehicles
Inheritance Hierarchy
- FNetworkPhysicsDatas
- FNetworkVehicleStates
References
| Module | ChaosVehicles |
| Header | /Engine/Plugins/Experimental/ChaosVehiclesPlugin/Source/ChaosVehicles/Public/ChaosVehicleManagerAsyncCallback.h |
| Include | #include "ChaosVehicleManagerAsyncCallback.h" |
Syntax
USTRUCT&40;&41;
struct FNetworkVehicleStates : public FNetworkPhysicsDatas
Remarks
Vehicle states datas that will be used in the states history to rewind the simulation at some point inn time
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | EngineOmega | Engine angular velocity | |
| FVector | StateLastVelocity | Vehicle state last velocity | |
| TArray< int32 > | SuspensionAveragedCount | Suspension averaged count for smoothing | |
| TArray< float > | SuspensionAveragedLength | Suspension averaged length for smoothing | |
| TArray< int32 > | SuspensionAveragedNum | Suspension averaged number for smoothing | |
| TArray< float > | SuspensionLastDisplacement | Suspension latest displacement to be used while simulating | |
| TArray< float > | SuspensionLastSpringLength | Suspension latest spring length to be used while simulating | |
| TArray< float > | WheelsAngularPosition | Angular position for each wheels | |
| TArray< float > | WheelsOmega | Angular velocity for each wheels |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | InterpolateDatas
(
const FNetworkVehicleStates& MinDatas, |
Interpolate the datas in between two inputs datas | |
| bool | NetSerialize
(
FArchive& Ar, |
Serialize datas function that will be used to transfer the struct across the network |
Overridden from FNetworkPhysicsDatas
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyDatas
(
UActorComponent* NetworkComponent |
Apply the datas onto the network physics component | |
| void | BuildDatas
(
const UActorComponent* NetworkComponent |
Build the datas from the network physics component |