/// <summary> /// where to look at in the world /// </summary> public virtual Vector3 WhereToLook() { PlayerObj leadingPlayer = CheckpointManager.instance.GetFurthestPlayer(); if (leadingPlayer != null) { Vector3 LookPos = (CheckpointManager.instance.GetFurthestPlayer().transform.position + CheckpointManager.instance.GetLosingPlayer().transform.position) * 0.5f; LookPos = rail.GetNearestNode(LookPos); return(LookPos); } else { return(currentClosestRailNodeIndex.GetWorldPosition(-followOffsetT + 1)); } }