Navigation
API > API/Runtime > API/Runtime/MRMesh
Inheritance Hierarchy
- UObject
- IInterface_CollisionDataProvider
- UMRMeshBodyHolder
References
| Module | MRMesh |
| Header | /Engine/Source/Runtime/MRMesh/Public/MRMeshComponent.h |
| Include | #include "MRMeshComponent.h" |
Syntax
UCLASS (Transient)
class UMRMeshBodyHolder :
public UObject,
public IInterface_CollisionDataProvider
Remarks
Because physics cooking uses GetOuter() to get the IInterface_CollisionDataProvider and provides no way to determine which physics body it is currently working on we are wrapping each body in this Holder so that it can be the Outer and provide the correct data.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bCookInProgress | ||
| FBodyInstance | BodyInstance | ||
| TObjectPtr< class UBodySetup > | BodySetup | ||
| FBox | Bounds | ||
| TSharedPtr< IMRMesh::FBrickDataReceipt, ESPMode::ThreadSafe > | BrickDataReceipt | Hold references to the bulk data which is owned externally, like FSendBrickDataArgs. The receipt keeps the references valid. | |
| IMRMesh::FBrickId | BrickId | ||
| const TArray< uint32 > * | Indices | ||
| const TArray< FVector3f > * | PositionData |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AbortCook () |
||
| void | Cleanup () |
||
| bool | ContainsPhysicsTriMeshData
(
bool InUseAllTriData |
||
| void | FinishPhysicsAsyncCook
(
bool bSuccess, |
Once async physics cook is done, create needed state | |
| bool | GetPhysicsTriMeshData
(
FTriMeshCollisionData* CollisionData, |
||
| bool | GetTriMeshSizeEstimates
(
FTriMeshCollisionDataEstimates& OutTriMeshEstimates, |
||
| void | Initialize
(
IMRMesh::FBrickId InBrickId |
||
| void | |||
| void | Update
(
const IMRMesh::FSendBrickDataArgs& Args |
||
| bool |