Closest Point On Sphere
PureClosestPointOnSphereReturns the closest point on a sphere's surface to a given point.
Type: Pure (no side effects)
Category: Fortuna|Vector & Transform
Keywords: vector & transform
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| Point | FVector | — | Point parameter |
| SphereCenter | FVector | — | SphereCenter parameter |
| SphereRadius | float | — | SphereRadius parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | FVector | ReturnValue output |
Example Use Cases
Example 1
Clamp an orbiting camera to a spherical boundary.
Example 2
Find the nearest surface point on a planet.