Module |
|
Header |
/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/PhysicalMaterials.h |
Include |
#include "Chaos/PhysicalMaterials.h" |
class FPhysicalMaterialManager
Global manager for physical materials. Materials are created, updated and destroyed only on the game thread and an immutable copy of the materials are stored on each solver. The solvers module binds to the updated event in this manager and enqueues updates to all active solvers when a material is updated.
The material manager provides handles for the objects which should be stored instead of the material pointer. When accessing the internal material always use the handle rather than storing the result of Get()
No constructors are accessible with public or protected access.
Name | Description | ||
---|---|---|---|
|
FMaterialHan... |
Create() |
Create a new material, returning a stable handle to it - this should be stored and not the actual material pointer |
|
FMaterialMas... |
CreateMask() |
Create a new material, returning a stable handle to it - this should be stored and not the actual material pointer |
|
Destroy ( |
Destroy the material referenced by the provided handle |
|
|
Destroy ( |
Destroy the material referenced by the provided handle |
|
|
FPhysicalMat... |
Get() |
|
|
const THandl... |
GetMasterMaterialMasks() |
|
|
const THandl... |
GetMasterMaterials() |
Gets the internal list of master materials representing the current user state of the material data |
|
FChaosPhysic... |
Resolve ( |
Get the actual material from a handle |
|
const FChaos... |
Resolve ( |
Get the actual material from a handle |
|
FChaosPhysic... |
Resolve ( |
|
|
const FChaos... |
Resolve ( |
Get the actual material from a handle |
|
UpdateMaterial ( |
Signals stakeholders that the stored material for the provided handle has changed |
|
|
UpdateMaterialMask ( |
Signals stakeholders that the stored material for the provided handle has changed |
Name |
Description |
---|---|
InitialCapacity |
Initial size for the handle-managed array |