Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/FTriangleMeshImplicitObject
Description
Given a normal and a face index, compute the most opposing normal associated with the underlying geometry features. For example a sphere swept against a box may not give a normal associated with one of the box faces. This function will return a normal associated with one of the faces.
Virtual Inheritance
- FImplicitObject::FindGeometryOpposingNormal → FTriangleMeshImplicitObject::FindGeometryOpposingNormal
| Name | FindGeometryOpposingNormal |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/TriangleMeshImplicitObject.h |
| Include Path | #include "Chaos/TriangleMeshImplicitObject.h" |
| Source | /Engine/Source/Runtime/Experimental/Chaos/Private/Chaos/TriangleMeshImplicitObject.cpp |
virtual FVec3 FindGeometryOpposingNormal
(
const FVec3 & DenormDir,
int32 FaceIndex,
const FVec3 & OriginalNormal
) const
The most opposing normal associated with the underlying geometry's feature (like a face)
Parameters
| Name | Remarks |
|---|---|
| DenormDir | the direction we want to oppose |
| FaceIndex | the face index associated with the geometry (for example if we hit a specific face of a convex hull) |
| OriginalNormal | the original normal given by something like a sphere sweep |