Track checkpoint. More...
Public Member Functions | |
void | Awake () |
Initialise. | |
void | Start () |
Calculates distances. | |
void | OnDrawGizmosSelected () |
Scene editor UI. | |
void | OnTriggerEnter (Collider collider) |
Triggered when a competitor hits this checkpoint. | |
float | ApproximateCircuitPosition (Vector3 p) |
Returns a value between 0 and 1 indicating the position around the track (based on checkpoint locations). | |
Public Attributes | |
Checkpoint | next |
The next checkpoint in the sequence. |
Track checkpoint.
float Checkpoint.ApproximateCircuitPosition | ( | Vector3 | p | ) |
Returns a value between 0 and 1 indicating the position around the track (based on checkpoint locations).
void Checkpoint.Awake | ( | ) |
Initialise.
void Checkpoint.OnDrawGizmosSelected | ( | ) |
Scene editor UI.
void Checkpoint.OnTriggerEnter | ( | Collider | collider | ) |
Triggered when a competitor hits this checkpoint.
void Checkpoint.Start | ( | ) |
Calculates distances.
The next checkpoint in the sequence.