Polarith AI
1.8
AIMPathConnector Class Reference

Description

Used for providing path points to behaviours derived from AIMFollowPath by using the method GetPoints.

The combination of AIMFollowPath and AIMPathConnector is useful in many situations, for example to create patrol behaviours and combine pathfinding with our system.

Usage: Inherit from AIMPathConnector and implement points in such a way returning the path points in global coordinates. In addition, you can override the methods for retrieving the points GetPoints and GetLocalPoints.

Inheritance diagram for AIMPathConnector:
AIMLinearPath AIMPathfinding AIMUnityPathfinding

Public Fields

Action PathChanged
 Processed if the path was modified or not. More...
 

Protected Fields

Color firstColor = Color.magenta
 Determines the color of all vertices as well as the start color of the edges. More...
 
Color secondColor = Color.cyan
 Determines the end color of the edges as well as the color of the path destination. More...
 
float scale = 1.0f
 Resizes the visualized sphere for each path point. More...
 
bool enableVisualization = true
 Specifies if path points are to be visualized or not. More...
 

Properties

abstract IList< Vector3 > points [get]
 This property is used for the handling of the stored path points. More...
 

Public Methods

virtual IList< Vector3 > GetPoints ()
 Returns the points in global coordinates, whereby it allocates memory and copies the original data. More...
 
virtual void GetPointsNonAlloc (IList< Vector3 > points)
 Returns the points in global coordinates without allocating memory. More...
 
virtual IList< Vector3 > GetLocalPoints ()
 Returns the points in local coordinates, whereby it allocates memory and copies the original data. More...
 
virtual void GetLocalPointsNonAlloc (IList< Vector3 > points)
 Returns the points in local coordinates without allocating memory. More...
 

Protected Methods

virtual void OnDrawGizmos ()
 Provides a basic visualization of the given points of this path. More...
 
virtual void DrawPoint (int index)
 Visualizes a specific path point by using Gizmos.DrawSphere(Vector3, float). More...
 
virtual void DrawEdge (int startPointIndex)
 Visualizes a specific edge drawing a fancy gradient. More...
 
Imprint