Closest Point On Box

Pure
ClosestPointOnBox

Returns the closest point on an oriented bounding box to a given point.

Type: Pure (no side effects)
Category: Fortuna|Vector & Transform
Keywords: vector & transform

Inputs

NameTypeDefaultDescription
PointFVectorPoint parameter
BoxCenterFVectorBoxCenter parameter
BoxExtentFVectorBoxExtent parameter
BoxRotationFRotatorBoxRotation parameter

Outputs

NameTypeDescription
ReturnValueFVectorReturnValue output

Example Use Cases

Example 1

Find nearest surface point on a building for a cover system.

Example 2

Calculate distance from a point to a rotated trigger volume.