Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UPrimitiveComponent
Description
Returns BodyInstanceAsyncPhysicsTickHandle of the component. For use in the Async Physics Tick event
| Name | GetBodyInstanceAsyncPhysicsTickHandle |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
| Include Path | #include "Components/PrimitiveComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PrimitiveComponentPhysics.cpp |
UFUNCTION (BlueprintPure, Category="Physics")
FBodyInstanceAsyncPhysicsTickHandle GetBodyInstanceAsyncPhysicsTickHandle
(
FName BoneName,
bool bGetWelded,
int32 Index
) const
Returns the BodyInstanceAsyncPhysicsTickHandle based on various states (does component have multiple bodies? Is the body welded to another body?)
Parameters
| Name | Remarks |
|---|---|
| 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 |