Navigation
API > API/Runtime > API/Runtime/PhysicsCore > API/Runtime/PhysicsCore/Chaos
Inheritance Hierarchy
- FChaosScene
- FPhysScene_Chaos
References
| Module | PhysicsCore |
| Header | /Engine/Source/Runtime/PhysicsCore/Public/Chaos/ChaosScene.h |
| Include | #include "Chaos/ChaosScene.h" |
Syntax
class FChaosScene
Remarks
Low level Chaos scene used when building custom simulations that don't exist in the main world physics scene.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FChaosSolversModule * | ChaosModule | Control module for Chaos - cached to avoid constantly hitting the module manager. | |
| float | MDeltaTime | ||
| float | MNetworkDeltaTimeScale | ||
| FOnPhysScenePostTick | OnPhysScenePostTick | ||
| UObject * | Owner | ||
| TArray< TObjectPtr< UObject > > | PieModifiedObjects | List of objects that we modified during a PIE run for physics simulation caching. | |
| Chaos::FPhysicsSolver * | SceneSolver | Solver representing this scene. | |
| Chaos::ISpatialAccelerationCollection< Chaos::FAccelerationStructureHandle, Chaos::FReal, 3 > * | SolverAccelerationStructure |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FChaosScene
(
UObject* OwnerPtr, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FChaosScene () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddActorsToScene_AssumesLocked
(
TArray< FPhysicsActorHandle >& InHandles, |
||
| void | AddPieModifiedObject
(
UObject* InObj |
||
| bool | |||
| void | BeginDestroy () |
||
| void | Copies the acceleration structure out of the solver, does no thread safety checking so ensure calls to this are made at appropriate sync points if required | ||
| void | EndFrame () |
||
| void | Flush () |
Flushes all pending global, task and solver command queues and refreshes the spatial acceleration for the scene. | |
| FGraphEventArray | |||
| float | |||
| Chaos::FPhysicsSolver * | GetSolver () |
Get the internal Chaos solver object | |
| Chaos::ISpatialAcceleration< Chaos::FAccelerationStructureHandle, Chaos::FReal, 3 > * | |||
| const Chaos::ISpatialAcceleration< Chaos::FAccelerationStructureHandle, Chaos::FReal, 3 > * | |||
| bool | |||
| float | OnStartFrame
(
float InDeltaTime |
||
| void | OnSyncBodies
(
Chaos::FPhysicsSolverBase* Solver |
||
| void | RemoveActorFromAccelerationStructure
(
FPhysicsActorHandle Actor |
||
| void | |||
| void | SetNetworkDeltaTimeScale
(
float InDeltaTimeScale |
||
| void | SetUpForFrame
(
const FVector* NewGrav, |
||
| void | StartFrame () |
||
| void | UpdateActorInAccelerationStructure
(
const FPhysicsActorHandle& Actor |
||
| void | UpdateActorsInAccelerationStructure
(
const TArrayView< FPhysicsActorHandle >& Actors |
||
| void |
Typedefs
| Name | Description |
|---|---|
| FOnPhysScenePostTick |