Navigation
Unreal Engine C++ API Reference > Runtime > Engine > FSeparatingAxisPointCheck
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/Collision.h |
Include | #include "Collision.h" |
Source | /Engine/Source/Runtime/Engine/Private/Collision/Collision.cpp |
bool TestSeparatingAxisCommon
&40;
const FVector & Axis,
float ProjectedPolyMin,
float ProjectedPolyMax
&41;
Remarks
Given a separating axis, and a minimum and maximum point projected onto it, determines whether the bounding box encroaches on the polygon along that axis, according to the separating axis theorem. Optionally sets the HitNormal and BestDist members according to the least penetration of the bounding box into the polygon.
Parameters
Name | Description |
---|---|
Axis | The separating axis. |
ProjectedPolyMin | The minimum polygon point, projected onto the separating axis. |
ProjectedPolyMax | The maximum polygon point, projected onto the separating axis. |