A* Pathfinding Project  4.3.2
The A* Pathfinding Project for Unity 3D
AdvancedSmooth.MaxTurn Class Reference

Type of turn. More...

Detailed Description

Type of turn.

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

Public Member Functions

override void GetPath (Turn turn, List< Vector3 > output)
 
override void OnTangentUpdate ()
 
override void PointToTangent (List< Turn > turnList)
 
override void Prepare (int i, Vector3[] vectorPath)
 
override void TangentToPoint (List< Turn > turnList)
 
override void TangentToTangent (List< Turn > turnList)
 
- Public Member Functions inherited from AdvancedSmooth.TurnConstructor
void AddCircleSegment (double startAngle, double endAngle, bool clockwise, Vector3 center, List< Vector3 > output, float radius)
 
Vector3 AngleToVector (double a)
 
double Atan2 (Vector3 v)
 
double ClampAngle (double a)
 
double ClockwiseAngle (double from, double to)
 Returns the angle between from and to in a clockwise direction. More...
 
double CounterClockwiseAngle (double from, double to)
 Returns the angle between from and to in a counter-clockwise direction. More...
 
void DebugCircle (Vector3 center, double radius, Color color)
 
void DebugCircleSegment (Vector3 center, double startAngle, double endAngle, double radius, Color color)
 
double GetLengthFromAngle (double angle, double radius)
 Returns the length of an circular arc with a radius and angle. More...
 
double ToDegrees (double rad)
 

Private Attributes

double alfaLeftLeft
 
double alfaLeftRight
 
double alfaRightLeft
 
double alfaRightRight
 
double betaLeftLeft
 
double betaLeftRight
 
double betaRightLeft
 
double betaRightRight
 
double deltaLeftRight
 
double deltaRightLeft
 
double gammaLeft
 
double gammaRight
 
Vector3 leftCircleCenter
 
Vector3 preLeftCircleCenter = Vector3.zero
 
Vector3 preRightCircleCenter = Vector3.zero
 
double preVaLeft
 
double preVaRight
 
Vector3 rightCircleCenter
 
double vaLeft
 
double vaRight
 

Additional Inherited Members

- Static Public Member Functions inherited from AdvancedSmooth.TurnConstructor
static void PostPrepare ()
 
static void Setup (int i, Vector3[] vectorPath)
 
- Public Attributes inherited from AdvancedSmooth.TurnConstructor
float constantBias = 0
 Constant bias to add to the path lengths. More...
 
float factorBias = 1
 Bias to multiply the path lengths with. More...
 
const double ThreeSixtyRadians = Math.PI * 2
 
- Static Public Attributes inherited from AdvancedSmooth.TurnConstructor
static bool changedPreviousTangent = false
 
static Vector3 normal
 
static Vector3 prev
 
static Vector3 t1
 
static float turningRadius = 1.0F
 

Member Function Documentation

◆ GetPath()

override void GetPath ( Turn  turn,
List< Vector3 >  output 
)
virtual

◆ OnTangentUpdate()

override void OnTangentUpdate ( )
virtual

Reimplemented from AdvancedSmooth.TurnConstructor.

◆ PointToTangent()

override void PointToTangent ( List< Turn turnList)
virtual

Reimplemented from AdvancedSmooth.TurnConstructor.

◆ Prepare()

override void Prepare ( int  i,
Vector3 []  vectorPath 
)
virtual

◆ TangentToPoint()

override void TangentToPoint ( List< Turn turnList)
virtual

Reimplemented from AdvancedSmooth.TurnConstructor.

◆ TangentToTangent()

override void TangentToTangent ( List< Turn turnList)
virtual

Reimplemented from AdvancedSmooth.TurnConstructor.

Member Data Documentation

◆ alfaLeftLeft

double alfaLeftLeft
private

◆ alfaLeftRight

double alfaLeftRight
private

◆ alfaRightLeft

double alfaRightLeft
private

◆ alfaRightRight

double alfaRightRight
private

◆ betaLeftLeft

double betaLeftLeft
private

◆ betaLeftRight

double betaLeftRight
private

◆ betaRightLeft

double betaRightLeft
private

◆ betaRightRight

double betaRightRight
private

◆ deltaLeftRight

double deltaLeftRight
private

◆ deltaRightLeft

double deltaRightLeft
private

◆ gammaLeft

double gammaLeft
private

◆ gammaRight

double gammaRight
private

◆ leftCircleCenter

Vector3 leftCircleCenter
private

◆ preLeftCircleCenter

Vector3 preLeftCircleCenter = Vector3.zero
private

◆ preRightCircleCenter

Vector3 preRightCircleCenter = Vector3.zero
private

◆ preVaLeft

double preVaLeft
private

◆ preVaRight

double preVaRight
private

◆ rightCircleCenter

Vector3 rightCircleCenter
private

◆ vaLeft

double vaLeft
private

◆ vaRight

double vaRight
private

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