FConvex::FindMostOpposingFace

Returns the most opposing face.

Windows
MacOS
Linux

Override Hierarchy

FImplicitObject::FindMostOpposingFace()

FConvex::FindMostOpposingFace()

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Convex.h

Include

#include "Chaos/Convex.h"

Source

/Engine/Source/Runtime/Experimental/Chaos/Private/Chaos/Convex.cpp

Syntax

virtual int32 FindMostOpposingFace
(
    const FVec3 & Position,
    const FVec3 & UnitDir,
    int32 HintFaceIndex,
    FReal SearchDist
) const

Remarks

Returns the most opposing face.

Returns

Index of the most opposing face

Parameters

Parameter

Description

Position

local position to search around (for example an edge of a convex hull)

UnitDir

the direction we want to oppose (for example a ray moving into the edge of a convex hull would get the face with the most negative dot(FaceNormal, UnitDir)

HintFaceIndex

for certain geometry we can use this to accelerate the search.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss