Let's say I am writing a simple video game in which a cannon fires a cannon ball out into oblivion.The cannon ball follows the path of a line rotated from a (0,0) (x,y) origin, and it's distance is measured by a 90° base (1n,0).
I need to figure out, given that the origin is (0,0), the distance is, for example, (14,0) and the degree of rotation is at the origin is 14°, and the distance point is at 90°, what are the coordinates to draw the cannon ball?
Any help or links to help would be appreciated, if there is a simple formula that would be awesome!


LinkBack URL
About LinkBacks