Navigation
Unreal Engine C++ API Reference > 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_AssumesLocked
&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 Note: This function is not thread safe. Make sure you obtain the physics scene read lock before calling it 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) |