A* Pathfinding Project
4.0.11
The A* Pathfinding Project for Unity 3D
|
Adjusts start and end points of a path. More...
Adjusts start and end points of a path.
Public Types | |
enum | Exactness { SnapToNode, Original, Interpolate, ClosestOnNode, NodeConnection } |
Sets where the start and end points of a path should be placed. More... | |
Public Member Functions | |
override void | Apply (Path _p) |
Main Post-Processing function. | |
Vector3 | GetClampedPoint (Vector3 from, Vector3 to, GraphNode hint) |
Public Member Functions inherited from PathModifier | |
void | Awake (Seeker s) |
void | OnDestroy (Seeker s) |
virtual void | PreProcess (Path p) |
Public Member Functions inherited from IPathModifier | |
void | Apply (Path p) |
void | PreProcess (Path p) |
Public Attributes | |
bool | addPoints |
Add points to the path instead of replacing them. | |
System.Func< Vector3 > | adjustStartPoint |
Will be called when a path is processed. | |
Exactness | exactEndPoint = Exactness.ClosestOnNode |
Exactness | exactStartPoint = Exactness.ClosestOnNode |
LayerMask | mask = -1 |
bool | useGraphRaycasting |
bool | useRaycasting |
Public Attributes inherited from PathModifier | |
Seeker | seeker |
Properties | |
override int | Order [get] |
Properties inherited from PathModifier | |
abstract int | Order [get] |
Modifiers will be executed from lower order to higher order. | |
Properties inherited from IPathModifier | |
int | Order [get] |
Private Member Functions | |
Vector3 | Snap (ABPath path, Exactness mode, bool start, out bool forceAddPoint) |
Private Attributes | |
List< GraphNode > | connectionBuffer |
System.Action< GraphNode > | connectionBufferAddDelegate |
enum Exactness |
Sets where the start and end points of a path should be placed.
|
virtual |
Main Post-Processing function.
Implements PathModifier.
Vector3 GetClampedPoint | ( | Vector3 | from, |
Vector3 | to, | ||
GraphNode | hint | ||
) |
bool addPoints |
Add points to the path instead of replacing them.
System.Func<Vector3> adjustStartPoint |
Will be called when a path is processed.
The value which is returned will be used as the start point of the path and potentially clamped depending on the value of the exactStartPoint field. Only used for the Original, Interpolate and NodeConnection modes.
|
private |
|
private |
Exactness exactEndPoint = Exactness.ClosestOnNode |
Exactness exactStartPoint = Exactness.ClosestOnNode |
LayerMask mask = -1 |
bool useGraphRaycasting |
bool useRaycasting |
|
get |