FVehicleState

Commonly used state - evaluated once used wherever required

Choose your operating system:

Windows

macOS

Linux

References

Module

ChaosVehicles

Header

/Engine/Plugins/Experimental/ChaosVehiclesPlugin/Source/ChaosVehicles/Public/ChaosVehicleMovementComponent.h

Include

#include "ChaosVehicleMovementComponent.h"

Syntax

struct FVehicleState

Remarks

Commonly used state - evaluated once used wherever required

Variables

Name Description

Public variable

bool

 

bAllWheelsOnGround

Public variable

bool

 

bSleeping

Public variable

bool

 

bVehicleInAir

Public variable

float

 

ForwardsAcceleration

Public variable

float

 

ForwardSpeed

Public variable

FVector

 

LastFrameVehicleLocalVelocity

Public variable

FVector

 

LocalAcceleration

Public variable

FVector

 

LocalGForce

Public variable

int

 

NumWheelsOnGround

Public variable

int

 

SleepCounter

Public variable

FVector

 

VehicleForwardAxis

Public variable

FVector

 

VehicleLocalVelocity

Public variable

FVector

 

VehicleRightAxis

Public variable

FVector

 

VehicleUpAxis

Public variable

FVector

 

VehicleWorldAngularVelocity

Public variable

FVector

 

VehicleWorldCOM

Public variable

FTransform

 

VehicleWorldTransform

Public variable

FVector

 

VehicleWorldVelocity

Public variable

FVector

 

WorldVelocityNormal

Constructors

Name Description

Public function

FVehicleState()

Functions

Name Description

Public function

void

 

CaptureState

(
    const FBodyInstance* TargetIns...,
    float GravityZ,
    float DeltaTime
)

Cache some useful data at the start of the frame from GT BodyInstance

Public function

void

 

CaptureState

(
    const Chaos::FRigidBodyHandle_Inter...,
    float GravityZ,
    float DeltaTime
)

Cache some useful data at the start of the frame from Physics thread Particle Handle