Navigation
API > API/Runtime > API/Runtime/MRMesh
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.
| Name | UMRMeshBodyHolder |
| Type | class |
| Header File | /Engine/Source/Runtime/MRMesh/Public/MRMeshComponent.h |
| Include Path | #include "MRMeshComponent.h" |
Syntax
UCLASS (Transient)
class UMRMeshBodyHolder :
public UObject,
public IInterface_CollisionDataProvider
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMRMeshBodyHolder
Implements Interfaces
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bCookInProgress | bool | MRMeshComponent.h | ||
| BodyInstance | FBodyInstance | MRMeshComponent.h |
|
|
| BodySetup | TObjectPtr< class UBodySetup > | MRMeshComponent.h |
|
|
| Bounds | FBox | MRMeshComponent.h | ||
| BrickDataReceipt | TSharedPtr< IMRMesh::FBrickDataReceipt, ESPMode::ThreadSafe > | Hold references to the bulk data which is owned externally, like FSendBrickDataArgs. The receipt keeps the references valid. | MRMeshComponent.h | |
| BrickId | IMRMesh::FBrickId | MRMeshComponent.h | ||
| Indices | const TArray< uint32 > * | MRMeshComponent.h | ||
| PositionData | const TArray< FVector3f > * | MRMeshComponent.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AbortCook() |
MRMeshComponent.h | ||
void Cleanup() |
MRMeshComponent.h | ||
void FinishPhysicsAsyncCook
(
bool bSuccess, |
Once async physics cook is done, create needed state | MRMeshComponent.h | |
void Initialize
(
IMRMesh::FBrickId InBrickId |
MRMeshComponent.h | ||
void ReleaseArgData() |
MRMeshComponent.h | ||
void Update
(
const IMRMesh::FSendBrickDataArgs& Args |
MRMeshComponent.h |
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool ContainsPhysicsTriMeshData
(
bool InUseAllTriData |
MRMeshComponent.h | ||
virtual bool GetPhysicsTriMeshData
(
FTriMeshCollisionData* CollisionData, |
MRMeshComponent.h | ||
virtual bool GetTriMeshSizeEstimates
(
FTriMeshCollisionDataEstimates& OutTriMeshEstimates, |
MRMeshComponent.h | ||
virtual bool WantsNegXTriMesh() |
MRMeshComponent.h |