A* Pathfinding Project  3.0.9
The A* Pathfinding Project for Unity
StartEndModifier Class Reference

Adjusts start and end points of a path. More...

+ Inheritance diagram for StartEndModifier:
+ Collaboration diagram for StartEndModifier:

List of all members.

Public Types

enum  Exactness { Snapped, Exact, Interpolate }  Sets where the start and end points of a path should be placed. More...

Public Member Functions

override void Apply (Path p, ModifierData source)  Main Post-Processing function.
Vector3 GetClampedPoint (Vector3 from, Vector3 to, Node hint)  

Public Variables

bool addPoints = false  Add points to the path instead of replacing.
Exactness exactStartPoint = Exactness.Exact  
Exactness exactEndPoint = Exactness.Exact  
bool useRaycasting = false  
LayerMask mask = -1  
bool useGraphRaycasting = false  

Properties

override ModifierData input [get]  
override ModifierData output [get]  

Detailed Description

Adjusts start and end points of a path.


Member Enumeration Documentation

enum Exactness

Sets where the start and end points of a path should be placed.

Enumerator:
Snapped 

The point is snapped to the first/last node in the path.

Exact 

The point is set to the exact point which was passed when calling the pathfinding.

Interpolate 

The point is set to the closest point on the line between either the two first point or the two last points.


Member Function Documentation

override void Apply ( Path  p,
ModifierData  source 
) [virtual]

Main Post-Processing function.

Implements Modifier.


Member Data Documentation

bool addPoints = false

Add points to the path instead of replacing.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations Properties