Navigation
API > API/Runtime > API/Runtime/GeometryCollectionEngine > API/Runtime/GeometryCollectionEngine/GeometryCollection > API/Runtime/GeometryCollectionEngine/GeometryCollection/UGeometryCollect-
- UPrimitiveComponent::GetBodyInstance()
- UGeometryCollectionComponent::GetBodyInstance()
References
| Module | GeometryCollectionEngine |
| Header | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Public/GeometryCollection/GeometryCollectionComponent.h |
| Include | #include "GeometryCollection/GeometryCollectionComponent.h" |
| Source | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Private/GeometryCollection/GeometryCollectionComponent.cpp |
virtual FBodyInstance &42; GetBodyInstance
&40;
FName BoneName,
bool bGetWelded,
int32 Index
&41; const
Remarks
Returns BodyInstance of the component. Returns the BodyInstance based on various states (does component have multiple bodies? Is the body welded to another body?)
Parameters
| Name | Description |
|---|---|
| BoneName | Used to get body associated with specific bone. NAME_None automatically gets the root most body |
| bGetWelded | If the component has been welded to another component and bGetWelded is true we return the single welded BodyInstance that is used in the simulation |
| Index | Index used in Components with multiple body instances |