Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/PhysicsEngine > API/Runtime/Engine/PhysicsEngine/FBodyInstance
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodyInstance.h |
| Include | #include "PhysicsEngine/BodyInstance.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/BodyInstance.cpp |
bool OverlapTest
&40;
const FVector & Position,
const FQuat & Rotation,
const struct FCollisionShape & CollisionShape,
FMTDResult &42; OutMTD,
bool bTraceComplex
&41; const
Remarks
Test if the bodyinstance overlaps with the specified shape at the specified position/rotation true if the geometry associated with this body instance overlaps the query shape at the specified location/rotation
Parameters
| Name | Description |
|---|---|
| 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) |