Navigation
API > API/Runtime > API/Runtime/ClothingSystemRuntimeCommon > API/Runtime/ClothingSystemRuntimeCommon/Utils
References
| Module | ClothingSystemRuntimeCommon |
| Header | /Engine/Source/Runtime/ClothingSystemRuntimeCommon/Public/Utils/ClothingMeshUtils.h |
| Include | #include "Utils/ClothingMeshUtils.h" |
namespace ClothingMeshUtils
{
FVector4f ClothingMeshUtils::GetPointBaryAndDist
(
const FVector3f & A,
const FVector3f & B,
const FVector3f & C,
const FVector3f & Point
)
}
Remarks
Given a triangle ABC with normals at each vertex NA, NB and NC, get a barycentric coordinate and corresponding distance from the triangle encoded in an FVector4 where the components are (BaryX, BaryY, BaryZ, Dist)
Parameters
| Name | Description |
|---|---|
| A | Position of triangle vertex A |
| B | Position of triangle vertex B |
| C | Position of triangle vertex C |
| NA | Normal at vertex A |
| NB | Normal at vertex B |
| NC | Normal at vertex C |
| Point | Point to calculate Bary+Dist for |