Infohazard.HyperNav 1.1.5
3D Navigation for Flying Characters
Loading...
Searching...
No Matches
Infohazard.HyperNav.NavUtil Class Reference

Contains utility methods for working with HyperNav navigation. More...

Static Public Member Functions

static bool SamplePosition (Vector3 position, out NavHit hit, float maxDistance)
 Perform a query to find the nearest point on any NavVolume to the given point. More...
 

Detailed Description

Contains utility methods for working with HyperNav navigation.

Member Function Documentation

◆ SamplePosition()

static bool Infohazard.HyperNav.NavUtil.SamplePosition ( Vector3  position,
out NavHit  hit,
float  maxDistance 
)
static

Perform a query to find the nearest point on any NavVolume to the given point.

Parameters
positionThe point at which to search.
hitThe resulting hit, containing the nearest point on a volume.
maxDistanceThe radius in which to search (a larger value is more expensive).
Returns
Whether a hit on any volume could be found in the given radius.

The documentation for this class was generated from the following file: