AIPathNode Class Reference

A node in an AI network to indicate where to go. More...

List of all members.

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]

Detailed Description

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


Member Function Documentation

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.


Member Data Documentation

bool AIPathNode.draw = true [static]

Debug drawing in scene view.

bool AIPathNode.dropToFloor = false

Whether this node should sit on the floor.

The ideal point along the spread to gain the upper hand when boosting.

The ideal choice when deciding on the next target node.

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.


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

Generated on Fri Aug 21 09:09:57 2009 for Hamlington Underground Racing Association by  doxygen 1.6.0