/** Returns the time the kart needs to fully steer in one direction from * steering straight depending on the current steering value. * \param steer Current steering value, must be >=0. */ float getTimeFullSteer(float steer) const { assert(steer>=0); return m_time_full_steer.get(steer); } // getTimeFullSteer
/** Returns the maximum steering angle (depending on speed). */ float getMaxSteerAngle(float speed) const { return m_turn_angle_at_speed.get(speed); } // getMaxSteerAngle
/** Returns the (maximum) speed for a given turn radius. * \param radius The radius for which the speed needs to be computed. */ float getSpeedForTurnRadius(float radius) const { float angle = sin(m_wheel_base / radius); return m_turn_angle_at_speed.getReverse(angle); } // getSpeedForTurnRadius
/** Returns the probability to collect an item depending on the distance * to the first player kart. */ float getItemCollectProbability(float distance) const { return m_collect_item_probability.get(distance); } // getItemcollectProbability
/** Returns the fraction of maximum speed the AI should drive at, depending * on the distance from the player. */ float getSpeedCap(float distance) const { return m_speed_cap.get(distance); } // getSpeedCap
/** Returns the skidding probability dependent on the specified distance * to the first player kart. */ float getSkiddingProbability(float distance) const { return m_skid_probability.get(distance); } // getSkiddingProbability