Module |
|
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
(
FMTDResult & OutMTD,
const FCollisionShape & CollisionShape,
const FVector & Pos,
const FQuat & Rot
)
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
Parameter |
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 |