GetClosestPointOnPhysicsAsset

GetClosestPointOnPhysicsAsset

Windows
MacOS
Linux

Given a world position, find the closest point on the physics asset. Note that this is independent of collision and welding. This is based purely on animation position

Target is Skeletal Mesh Component

GetClosestPointOnPhysicsAsset
Target
World Position
X0
Y 0
Z 0
Closest World Position
X0
Y 0
Z 0
Normal
X0
Y 0
Z 0
Bone Name
None
Distance
0.0
Return Value

Inputs

Target
Skeletal Mesh Component Object Reference
World Position
Vector (by ref)

The point we want the closest point to (i.e. for all bodies in the physics asset, find the one that has a point closest to WorldPosition)

Outputs

Closest World Position
Vector
Normal
Vector
Bone Name
Name
Distance
Float
Return Value
Boolean

true if we found a closest point

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