A* Pathfinding Project  3.7.2
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
AdvancedSmooth Class Reference

Smoothing by dividing path into turns and straight segments. More...

Detailed Description

Smoothing by dividing path into turns and straight segments.

A* Pro Feature:
This is an A* Pathfinding Project Pro feature only. This function/class/variable might not exist in the Free version of the A* Pathfinding Project or the functionality might be limited
The Pro version can be bought here

Classes

class  ConstantTurn
 Constant turning speed. More...
 
class  MaxTurn
 Type of turn. More...
 
struct  Turn
 Represents a turn in a path. More...
 
class  TurnConstructor
 Abstract turn constructor. More...
 

Public Member Functions

override void Apply (Path p, ModifierData source)
 Main Post-Processing function.
 
- Public Member Functions inherited from MonoModifier
void Awake ()
 Alerts the Seeker that this modifier exists.
 
void OnDestroy ()
 
void OnDisable ()
 
void OnEnable ()
 
void PreProcess (Path p)
 
- Public Member Functions inherited from IPathModifier
void Apply (Path p, ModifierData source)
 
void PreProcess (Path p)
 

Public Attributes

MaxTurn turnConstruct1 = new MaxTurn ()
 
ConstantTurn turnConstruct2 = new ConstantTurn ()
 
float turningRadius = 1.0F
 
- Public Attributes inherited from MonoModifier
Seeker seeker
 

Properties

override ModifierData input [get]
 
override ModifierData output [get]
 
- Properties inherited from MonoModifier
abstract ModifierData input [get]
 
abstract ModifierData output [get]
 
int Priority [get, set]
 Higher priority modifiers are executed first.
 
- Properties inherited from IPathModifier
ModifierData input [get]
 
ModifierData output [get]
 
int Priority [get, set]
 

Private Member Functions

void EvaluatePaths (List< Turn > turnList, List< Vector3 > output)
 

Member Function Documentation

override void Apply ( Path  p,
ModifierData  source 
)
virtual

Main Post-Processing function.

Implements MonoModifier.

void EvaluatePaths ( List< Turn turnList,
List< Vector3 >  output 
)
private

Member Data Documentation

MaxTurn turnConstruct1 = new MaxTurn ()
ConstantTurn turnConstruct2 = new ConstantTurn ()
float turningRadius = 1.0F

Property Documentation

override ModifierData input
get
override ModifierData output
get

The documentation for this class was generated from the following file: