Get Closest Point on Collision

Get Closest Point on Collision

Windows
MacOS
Linux

Returns the distance and closest point to the collision surface. Component must have simple collision to be queried for closest point.

Target is Primitive Component

Get Closest Point on Collision
Target
Point
X0
Y 0
Z 0
Bone Name
None
Out Point on Body
X0
Y 0
Z 0
Return Value
0.0

Inputs

Target
Primitive Component Object Reference
Point
Vector (by ref)

World 3D vector

Bone Name
Name

If a SkeletalMeshComponent, name of body to set center of mass of. 'None' indicates root body.

Outputs

Out Point on Body
Vector

Point on the surface of collision closest to Point

Return Value
Float

Success if returns > 0.f, if returns 0.f, it is either not convex or inside of the point If returns < 0.f, this primitive does not have collsion

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback