engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
Chaos::FPhysicalMaterialManager类 参考

Global manager for physical materials. 更多...

#include <PhysicalMaterials.h>

Public 成员函数

FMaterialHandle Create ()
 Create a new material, returning a stable handle to it - this should be stored and not the actual material pointer
 
void Destroy (FMaterialHandle InHandle)
 Destroy the material referenced by the provided handle
 
const THandleArray< FChaosPhysicsMaterial > & GetMasterMaterials () const
 Gets the internal list of master materials representing the current user state of the material data
 
FChaosPhysicsMaterial * Resolve (FChaosMaterialHandle InHandle) const
 Get the actual material from a handle
 
void UpdateMaterial (FMaterialHandle InHandle)
 Signals stakeholders that the stored material for the provided handle has changed
 

Public 属性

FOnMaterialUpdated OnMaterialUpdated
 Events
 

详细描述

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()


该类的文档由以下文件生成: