Navigation
API > API/Plugins > API/Plugins/ChaosModularVehicleEngine > API/Plugins/ChaosModularVehicleEngine/ChaosModularVehicle
References
| Module | ChaosModularVehicleEngine |
| Header | /Engine/Plugins/Experimental/ChaosModularVehicle/Source/ChaosModularVehicleEngine/Public/ChaosModularVehicle/ChaosSimModuleManager.h |
| Include | #include "ChaosModularVehicle/ChaosSimModuleManager.h" |
Syntax
class FChaosSimModuleManager
Constructors
| Type | Name | Description | |
|---|---|---|---|
FChaosSimModuleManager
(
FPhysScene* PhysScene |
Updated when vehicles need to recreate their physics state. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddVehicle
(
TWeakObjectPtr< UModularVehicleBaseComponent > Vehicle |
Register a Physics vehicle for processing | |
| void | DetachFromPhysScene
(
FPhysScene* PhysScene |
Detach this vehicle manager from a FPhysScene (remove delegates, remove from map etc) | |
| FChaosSimModuleManager * | GetManagerFromScene
(
FPhysScene* PhysScene |
Find a vehicle manager from an FPhysScene | |
| FPhysScene_Chaos & | GetScene () |
Get Physics Scene | |
| void | InjectInputs_External
(
int32 PhysicsStep, |
Called on GT but before Physics thread runs - PT tick rate | |
| void | OnPostWorldInitialization
(
UWorld* InWorld, |
||
| void | OnShowDebugInfo
(
AHUD* HUD, |
||
| void | OnWorldCleanup
(
UWorld* InWorld, |
||
| void | ParallelUpdateVehicles
(
float DeltaSeconds |
||
| void | PostUpdate
(
FChaosScene* PhysScene |
Post update step | |
| void | RegisterCallbacks
(
UWorld* InWorld |
||
| void | RemoveVehicle
(
TWeakObjectPtr< UModularVehicleBaseComponent > Vehicle |
Unregister a Physics vehicle from processing | |
| void | ScenePreTick
(
FPhysScene* PhysScene, |
Update vehicle tuning and other state such as input | |
| void | |||
| void | Update
(
FPhysScene* PhysScene, |
Update simulation of registered vehicles |
Constants
| Name | Description |
|---|---|
| GInitialized | |
| OnPostWorldInitializationHandle | |
| OnWorldCleanupHandle | |
| SceneToModuleManagerMap | Map of physics scenes to corresponding vehicle manager |