Polarith AI
1.7
AIMFollow Class Reference

Description

By using AIMFollow the agent follows one target independent on its distance 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.Follow class. This behaviour is thread-safe.

Inheritance diagram for AIMFollow:
AIMSteeringBehaviour AIMPerceptBehaviour< SteeringPercept >

Public Fields

GameObject Target
 The target game object used by the agent to move towards. More...
 
Vector3 TargetPosition
 The target position used by the agent to move towards, therefore, the Target must be null. More...
 
Follow Follow = new Follow()
 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

VelocityGizmo velocityGizmo = new VelocityGizmo()
 Sets up the visualization of the velocity (editor only). More...
 

Properties

override SteeringBehaviour SteeringBehaviour [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...
 
override PerceptBehaviour< SteeringPerceptPerceptBehaviour [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 ()
 When AIMSteeringBehaviour.PrepareEvaluation is called, this method is used in order to transfer the data from Target or TargetPosition to AIMPerceptBehaviour<T>.GameObjects. More...
 

Protected Methods

override void OnValidate ()
 This function is called when the script is loaded or a value is changed in the inspector (editor only). More...
 
virtual void OnDrawGizmos ()
 Draws gizmos for the velocity information of the underlying back-end Move.SteeringBehaviour within the scene view (editor only). More...
 
override void OnEnable ()
 This method is called when the object becomes enabled and active. More...
 
Imprint