Game Play Functions

Artificial Intelligence

Downloadangle_difference(angle1,angle2)   Returns the difference of the given angles in degress, -180 to 180. Downloadinstance_closest_approach(inst)   Returns the closest distance that a given instance will approach the current instance. Downloadintercept_course(origin,target,velocity)   Returns the direction a projectile with a given velocity must travel to intercept a given target from a given origin. Downloadmotion_predict(instance,steps)   Returns a list data structure loaded with the predicted positions of the given instance with regard to its current motion, friction and gravity.

Comments? Click to Comment