Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UPrimitiveComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
| Include | #include "Components/PrimitiveComponent.h" |
float GetDistanceToCollision
&40;
const FVector & Point,
FVector & ClosestPointOnCollision
&41; const
Remarks
Returns Distance to closest Body Instance surface. Success if returns > 0.f, if returns 0.f, point is inside the geometry If returns < 0.f, this primitive does not have collsion or if geometry is not supported
Parameters
| Name | Description |
|---|---|
| Point | World 3D vector |
| OutPointOnBody | Point on the surface of collision closest to Point |