Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UPrimitiveComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
| Include | #include "Components/PrimitiveComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/PrimitiveComponent.cpp |
virtual bool ComputePenetration
&40;
FMTDResult & OutMTD,
const FCollisionShape & CollisionShape,
const FVector & Pos,
const FQuat & Rot
&41;
Remarks
Computes the minimum translation direction (MTD) when an overlap exists between the component and the given shape. true if the computation succeeded - assumes that there is an overlap at the specified position/rotation
Parameters
| Name | Description |
|---|---|
| OutMTD | Outputs the MTD to move CollisionShape out of penetration |
| CollisionShape | Shape information for the geometry testing against |
| Pos | Location of collision shape |
| Rot | Rotation of collision shape |