Navigation
API > API/Runtime > API/Runtime/MRMesh
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMRMeshBodyHolder
References
| Module | MRMesh |
| Header | /Engine/Source/Runtime/MRMesh/Public/MRMeshComponent.h |
| Include | #include "MRMeshComponent.h" |
Syntax
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 () |
||
| void | FinishPhysicsAsyncCook
(
bool bSuccess, |
Once async physics cook is done, create needed state | |
| void | Initialize
(
IMRMesh::FBrickId InBrickId |
||
| void | |||
| void | Update
(
const IMRMesh::FSendBrickDataArgs& Args |
Overridden from IInterface_CollisionDataProvider
| Type | Name | Description | |
|---|---|---|---|
| bool | ContainsPhysicsTriMeshData
(
bool InUseAllTriData |
Interface for checking if the implementing objects contains triangle mesh collision data | |
| bool | GetPhysicsTriMeshData
(
FTriMeshCollisionData* CollisionData, |
Interface for retrieving triangle mesh collision data from the implementing object | |
| bool | GetTriMeshSizeEstimates
(
FTriMeshCollisionDataEstimates& OutTriMeshEstimates, |
Returns an estimate of how much data would be retrieved by GetPhysicsTriMeshData. | |
| bool | Do we want to create a negative version of this mesh |