Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodySetup.h |
Include |
#include "PhysicsEngine/BodySetup.h" |
Source |
/Engine/Source/Runtime/Engine/Private/PhysicsEngine/BodySetup.cpp |
float GetClosestPointAndNormal
(
const FVector & WorldPosition,
const FTransform & BodyToWorldTM,
FVector & ClosestWorldPosition,
FVector & FeatureNormal
) const
Finds the closest point in the body setup. Input and outputs are given in world space.
This function ignores convex and trimesh data
The distance between WorldPosition and the body setup. 0 indicates WorldPosition is inside one of the shapes.
Parameter |
Description |
---|---|
WorldPosition |
The point we are trying to get close to |
BodyToWorldTM |
The transform to convert BodySetup into world space |
ClosestWorldPosition |
The closest point on the body setup to WorldPosition |
FeatureNormal |
The normal of the feature associated with ClosestWorldPosition |