bool AIManager::atPoint(int playerNum, vec3 pos) { PlayerInfo* ai = state->getPlayer(playerNum); float distance = length(ai->getPos() - vec3(pos.x, ai->getPos().y, pos.z)); if (distance < 6.f) { return true; } else { return false; } }