| UPrimitiveComponent::GetSquaredDistanceToCollision()
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
Include |
#include "Components/PrimitiveComponent.h" |
Source |
/Engine/Source/Runtime/Engine/Private/PrimitiveComponentPhysics.cpp |
Returns The square of the distance to closest Body Instance surface.
true if a distance to the body was found and OutDistanceSquared has been populated
Parameter |
Description |
---|---|
Point |
World 3D vector |
OutSquaredDistance |
The squared distance to closest Body Instance surface. 0 if inside of the body |
OutPointOnBody |
Point on the surface of collision closest to Point |