Polarith AI
1.8
AIMAvoid Class Reference

Description

Active avoidance behaviour (front-end component).

Objective magnitudes are generated based on a plane perpendicular towards percepts such that the agent prefers directions which can guide it around the object. Since a plane is used to generate the objective values, this behaviour can be used in general 3D scenarios (with every kind of 3D sensor).

Front-end component of the underlying Move.Avoid class. This behaviour is thread-safe.

Inheritance diagram for AIMAvoid:
AIMRadiusSteeringBehaviour AIMSteeringBehaviour AIMPerceptBehaviour< SteeringPercept >

Public Fields

Avoid Avoid = new Avoid()
 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...
 
override SteeringBehaviour SteeringBehaviour [get]
 Polymorphic reference to the underlying back-end class (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 ()
 Checks if the SteeringBehaviour.TargetObjective is valid to use, and prints appropriate debug warnings if it is not. More...
 

Protected Methods

override void OnDrawGizmos ()
 Draws gizmos showing the gradient plane of the last updated percept within the scene view (editor only). 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...
 
Imprint