SCRIPTING API / AI and navigation / NavAgent
NavAgent
Controls an entity's NavMesh Agent (crowd path following with local avoidance).
Kindclass
NamespaceKroys.EngineScripting
Members4
Source
Navigation.csDECLARATION
Declaration
Namespace Kroys.EngineScripting.
Declaration
public static class NavAgent
REFERENCE
Members
Methods
#public static bool SetDestination(Entity entity, Vector3 destination)Sends the agent to a point; false when the entity has no enabled NavMesh Agent.
#public static bool Stop(Entity entity)Stops the NavMesh Agent where it is and clears its destination.
#public static NavAgentStatus GetStatus(Entity entity)The agent's movement status (moving, arrived, unreachable...).
#public static Vector3 GetVelocity(Entity entity)The agent's current velocity in metres per second.
Signatures
public static bool SetDestination(Entity entity, Vector3 destination) public static bool Stop(Entity entity) public static NavAgentStatus GetStatus(Entity entity) public static Vector3 GetVelocity(Entity entity)
KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.