FChaosVehicleManager

Choose your operating system:

Windows

macOS

Linux

References

Module

ChaosVehicles

Header

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

Include

#include "ChaosVehicleManager.h"

Syntax

class FChaosVehicleManager

Constructors

Name Description

Public function

FChaosVehicleManager

(
    FPhysScene* PhysScene
)

Destructors

Name Description

Public function

~FChaosVehicleManager()

Functions

Name Description

Public function

void

 

AddVehicle

Register a Physics vehicle for processing

Public function

void

 

DetachFromPhysScene

(
    FPhysScene* PhysScene
)

Detach this vehicle manager from a FPhysScene (remove delegates, remove from map etc)

Public function Static

FChaosVehicl...

 

GetVehicleManagerFromScene

(
    FPhysScene* PhysScene
)

Find a vehicle manager from an FPhysScene

Public function Static

void

 

OnPostWorldInitialization

(
    UWorld* InWorld,
    const UWorld::InitializationValues
)

Public function Static

void

 

OnWorldCleanup

(
    UWorld* InWorld,
    bool bSessionEnded,
    bool bCleanupResources
)

Public function

void

 

ParallelUpdateVehicles

(
    float DeltaSeconds
)

Public function

void

 

PostUpdate

(
    FChaosScene* PhysScene
)

Public function

void

 

RegisterCallbacks()

Public function

void

 

RemoveVehicle

Unregister a Physics vehicle from processing

Public function

void

 

ScenePreTick

(
    FPhysScene* PhysScene,
    float DeltaTime
)

Update vehicle tuning and other state such as input

Public function

void

 

UnregisterCallbacks()

Public function

void

 

Update

(
    FPhysScene* PhysScene,
    float DeltaTime
)

Constants

Name

Description

OnPostWorldInitializationHandle

OnWorldCleanupHandle

SceneToVehicleManagerMap

Map of physics scenes to corresponding vehicle manager

VehicleSetupTag

Updated when vehicles need to recreate their physics state.