SCRIPTING API / AI and navigation / Navigation
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
Source
Navigation.csDECLARATION
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.
Methods
#public static NavPathStatus FindPath(Vector3 start, Vector3 end, List<Vector3> points)Finds a path;
points receives the corners (cleared first).#public static bool FindNearestPoint(Vector3 point, float searchRadius, out Vector3 nearest)Nearest navmesh point within
searchRadius.#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.
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.