FConvex::FindGeometryOpposingNormal

Given a normal and a face index, compute the most opposing normal associated with the underlying geometry features.

Windows
MacOS
Linux

Override Hierarchy

FImplicitObject::FindGeometryOpposingNormal()

FConvex::FindGeometryOpposingNormal()

References

Module

Chaos

Header

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

Include

#include "Chaos/Convex.h"

Syntax

virtual FVec3 FindGeometryOpposingNormal
(
    const FVec3 & DenormDir,
    int32 FaceIndex,
    const FVec3 & OriginalNormal
) const

Remarks

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.

Returns

The most opposing normal associated with the underlying geometry's feature (like a face)

Parameters

Parameter

Description

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

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