Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FBodyInstance
Description
Test if the bodyinstance overlaps with the specified shape at the specified position/rotation Note: This function is not thread safe. Make sure you obtain the physics scene read lock before calling it
| Name | OverlapTest_AssumesLocked |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodyInstance.h |
| Include Path | #include "PhysicsEngine/BodyInstance.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/BodyInstance.cpp |
bool OverlapTest_AssumesLocked
(
const FVector & Position,
const FQuat & Rotation,
const struct FCollisionShape & CollisionShape,
FMTDResult * OutMTD,
bool bTraceComplex
) const
true if the geometry associated with this body instance overlaps the query shape at the specified location/rotation
Parameters
| Name | Remarks |
|---|---|
| Position | Position to place the shape at before testing |
| Rotation | Rotation to apply to the shape before testing |
| CollisionShape | Shape to test against |
| OutMTD | The minimum translation direction needed to push the shape out of this BodyInstance. (Optional) |
| TraceComplex | Trace against complex or simple geometry (Defaults simple) |