KROYSDOCS
HomeWhat's newv0.1.0

Navigation

Queries on the scene's baked, tiled navmesh: paths, nearest points and raycasts along the walkable surface. Calls return failure when the scene has no NavMesh Surface (or it is still baking).

Kindclass
NamespaceKroys.EngineScripting
Members4
SourceNavigation.cs
DECLARATION

Declaration

Namespace Kroys.EngineScripting.

Declaration
public static class Navigation
REFERENCE

Members

Properties
#public static bool IsReady { get; }
True when the navmesh is loaded or baked.
propertystatic
Methods
#public static NavPathStatus FindPath(Vector3 start, Vector3 end, List<Vector3> points)
Finds a path; points receives the corners (cleared first).
methodstatic
#public static bool FindNearestPoint(Vector3 point, float searchRadius, out Vector3 nearest)
Nearest navmesh point within searchRadius.
methodstatic
#public static bool Raycast(Vector3 start, Vector3 end, out Vector3 hitPoint, out Vector3 hitNormal)
Walks the navmesh from start toward end; true when a wall blocks the way.
methodstatic
Signatures
public static bool IsReady { get; }
public static NavPathStatus FindPath(Vector3 start, Vector3 end, List<Vector3> points)
public static bool FindNearestPoint(Vector3 point, float searchRadius, out Vector3 nearest)
public static bool Raycast(Vector3 start, Vector3 end, out Vector3 hitPoint, out Vector3 hitNormal)

KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.