Navigation
Unreal Engine C++ API Reference > Runtime > Chaos > Chaos > FTriangleMeshImplicitObject > FindMostOpposingFace
- FImplicitObject::FindMostOpposingFace()
- FTriangleMeshImplicitObject::FindMostOpposingFace()
References
Module | Chaos |
Header | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/TriangleMeshImplicitObject.h |
Include | #include "Chaos/TriangleMeshImplicitObject.h" |
Source | /Engine/Source/Runtime/Experimental/Chaos/Private/Chaos/TriangleMeshImplicitObject.cpp |
virtual int32 FindMostOpposingFace
&40;
const FVec3 & Position,
const FVec3 & UnitDir,
int32 HintFaceIndex,
FReal SearchDist
&41; const
Remarks
Returns the most opposing face. Index of the most opposing face
Parameters
Name | 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. |