Uses the NavMesh.Raycast(Vector3, Vector3, out NavMeshHit, int) to detect edges near to the agent (front-end component).
Note, changes to the inherited AIMPerceptBehaviour<T>.FilteredEnvironments and AIMPerceptBehaviour<T>.GameObjects fields have no effect, since they are reset PrepareEvaluation.
Front-end component of the underlying Move.FleeNavMesh class. This behaviour is thread-safe.
Public Fields | |
int | AreaMask = -1 |
Specifies the area for the NavMesh.FindClosestEdge(Vector3, out NavMeshHit, int) and NavMesh.GetAreaCost(int) methods. More... | |
FleeNavMesh | FleeNavMesh = new FleeNavMesh() |
The underlying back-end behaviour class. More... | |
List< string > | FilteredEnvironments |
All environments to obtain the percepts for. More... | |
List< GameObject > | GameObjects |
Allows to specify custom objects which should be processed by this behaviour. More... | |
Protected Fields | |
WireSphereGizmo | innerRadiusGizmo = new WireSphereGizmo() |
Sets up the visualization of the inner radius (editor only). More... | |
WireSphereGizmo | outerRadiusGizmo = new WireSphereGizmo() |
Sets up the visualization of the outer radius (editor only). More... | |
CircleGizmo | innerCircleGizmo = new CircleGizmo() |
Sets up the visualization of the inner radius for planar sensor shapes (editor only). More... | |
CircleGizmo | outerCircleGizmo = new CircleGizmo() |
Sets up the visualization of the outer radius for planar sensor shapes (editor only). More... | |
VelocityGizmo | velocityGizmo = new VelocityGizmo() |
Sets up the visualization of the velocity (editor only). More... | |
Properties | |
override RadiusSteeringBehaviour | RadiusSteeringBehaviour [get] |
Polymorphic reference to the underlying back-end class (read only). More... | |
override bool | ThreadSafe [get] |
Determines whether the underlying back-end class is thread-safe (read only). More... | |
NavMeshFeelerType | FeelerType [get, set] |
Defines how rays that try to find a navmesh edge are placed around the agent. More... | |
int | FeelerCount [get, set] |
The number of raycast that are processed. More... | |
override SteeringBehaviour | SteeringBehaviour [get] |
Polymorphic reference to the underlying back-end class (read only). More... | |
override PerceptBehaviour< SteeringPercept > | PerceptBehaviour [get] |
Polymorphic reference to the underlying back-end class (read only). More... | |
override MoveBehaviour | Behaviour [get] |
Polymorphic reference to the underlying back-end class (read only). More... | |
Public Methods | |
override void | PrepareEvaluation () |
Calls AIMSteeringBehaviour.PrepareEvaluation and passes the NavMeshHit data to FleeNavMesh. More... | |
Protected Methods | |
override void | Awake () |
Lazy instantiation of the static target game object. More... | |
override void | OnDrawGizmos () |
In addition to AIMRadiusSteeringBehaviour.OnDrawGizmos, the RaycastGizmo is displayed if it is enabled. More... | |
override void | OnValidate () |
This function is called when the script is loaded or a value is changed in the inspector (editor only). More... | |
override void | OnEnable () |
This method is called when the object becomes enabled and active. More... | |