A* Pathfinding Project  4.1.15
The A* Pathfinding Project for Unity 3D
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)
 Called for each path that the Seeker calculates after the calculation has finished. More...
 
- Public Member Functions inherited from MonoModifier
virtual void PreProcess (Path path)
 

Public Attributes

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

Properties

override int Order [get]
 
- Properties inherited from MonoModifier
abstract int Order [get]
 Modifiers will be executed from lower order to higher order. More...
 
- Properties inherited from IPathModifier
int Order [get]
 

Private Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from MonoModifier
virtual void OnDisable ()
 
virtual void OnEnable ()
 Alerts the Seeker that this modifier exists. More...
 
- Protected Member Functions inherited from VersionedMonoBehaviour
virtual void Awake ()
 
virtual int OnUpgradeSerializedData (int version, bool unityThread)
 Handle serialization backwards compatibility. More...
 

Member Function Documentation

◆ Apply()

override void Apply ( Path  path)
virtual

Called for each path that the Seeker calculates after the calculation has finished.

Implements MonoModifier.

◆ EvaluatePaths()

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

Member Data Documentation

◆ turnConstruct1

MaxTurn turnConstruct1 = new MaxTurn()

◆ turnConstruct2

ConstantTurn turnConstruct2 = new ConstantTurn()

◆ turningRadius

float turningRadius = 1.0F

Property Documentation

◆ Order

override int Order
get

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