A node in an AI network to indicate where to go. More...
Public Member Functions | |
void | DropToFloor () |
Drops this spawner to the floor, offset by spawnHeight. | |
void | Awake () |
Initialize. | |
void | OnDrawGizmos () |
Editor GUI drawing method for all objects. | |
void | OnDrawGizmosSelected () |
Editor GUI drawing method for selected objects. | |
Vector3 | SpreadVector () |
Returns the spread vector for this node. | |
Public Attributes | |
float | radius = 1.0f |
The radius inside which a "hit" is detected and the next node sought. | |
float | spread = 1.0f |
The distance across the track to spread possible targets. | |
AIPathNode[] | next |
An array of next node choices. | |
float | speedHint = 1.0f |
Set this below one to slow the agent down for difficult corners. | |
bool | dropToFloor = false |
Whether this node should sit on the floor. | |
float | idealDrift = 0 |
The ideal point along the spread to gain the upper hand (-1 to 1). | |
float | idealBoostDrift = 0 |
The ideal point along the spread to gain the upper hand when boosting. | |
int | idealChoice = 0 |
The ideal choice when deciding on the next target node. | |
Static Public Attributes | |
static bool | draw = true |
Debug drawing in scene view. | |
Properties | |
static AIPathNode[] | AllNodes [get] |
A node in an AI network to indicate where to go.
Each node also provides hints on what speed to aim for and spreading across the track
void AIPathNode.Awake | ( | ) |
Initialize.
void AIPathNode.DropToFloor | ( | ) |
Drops this spawner to the floor, offset by spawnHeight.
void AIPathNode.OnDrawGizmos | ( | ) |
Editor GUI drawing method for all objects.
void AIPathNode.OnDrawGizmosSelected | ( | ) |
Editor GUI drawing method for selected objects.
Vector3 AIPathNode.SpreadVector | ( | ) |
Returns the spread vector for this node.
bool AIPathNode.draw = true [static] |
Debug drawing in scene view.
bool AIPathNode.dropToFloor = false |
Whether this node should sit on the floor.
float AIPathNode.idealBoostDrift = 0 |
The ideal point along the spread to gain the upper hand when boosting.
int AIPathNode.idealChoice = 0 |
The ideal choice when deciding on the next target node.
float AIPathNode.idealDrift = 0 |
The ideal point along the spread to gain the upper hand (-1 to 1).
An array of next node choices.
float AIPathNode.radius = 1.0f |
The radius inside which a "hit" is detected and the next node sought.
float AIPathNode.speedHint = 1.0f |
Set this below one to slow the agent down for difficult corners.
Values above one should be used to indicate good places to boost, with two or higher being top-notch boost spots (or pile-up spots)
float AIPathNode.spread = 1.0f |
The distance across the track to spread possible targets.