Navigation
API > API/Runtime > API/Runtime/Engine
FSeparatingAxisPointCheck - Checks for intersection between an AABB and a convex polygon.
| |
|
| Name |
FSeparatingAxisPointCheck |
| Type |
class |
| Header File |
/Engine/Source/Runtime/Engine/Public/Collision.h |
| Include Path |
#include "Collision.h" |
Syntax
class FSeparatingAxisPointCheck
Constructors
| Name |
Remarks |
Include Path |
Unreal Specifiers |
FSeparatingAxisPointCheck
(
const TArray< FVector >& InPolyVertices,
const FVector& InBoxCenter,
const FVector& InBoxExtent,
bool bInCalcLeastPenetration
)
|
Creates an object representing the intersection between an axis-aligned bounding box and a convex polygon. |
Collision.h |
|
Variables
Public
| Name |
Type |
Remarks |
Include Path |
Unreal Specifiers |
| BestDist |
float |
The amount that the bounding box is penetrating the axis defined by HitNormal |
Collision.h |
|
| bHit |
bool |
Whether the bounding box intersects with the polygon |
Collision.h |
|
| HitNormal |
FVector |
The normal of the separating axis that the bounding box is penetrating the least |
Collision.h |
|
Protected
| Name |
Type |
Remarks |
Include Path |
Unreal Specifiers |
| bCalcLeastPenetration |
bool |
Flag specifying whether the least penetration should be calculated. |
Collision.h |
|
| BoxCenter |
FVector |
Center of the axis-aligned bounding box being checked. |
Collision.h |
|
| BoxExtent |
FVector |
Extents of the axis-aligned bounding box being checked. |
Collision.h |
|
| PolyVertices |
const TArray< FVector > & |
Array of vertices defining the convex polygon being checked. |
Collision.h |
|
Functions
Public