Original Post
I have a character in my game who should be able to fire in any direction. I will use the mouse to point in the direction, but I could not figure out a way to use the character x and y and the mouse x and y to determine the angle that mouse is from the character. In school I learned about sin, cos, and tan, so I thought this may be the way to go, but I am unsure. (this is not homework.) character position = c mouse position = m I need to calculate the angle that goes from c to m. Any ideas?
m
/
/
/ Angle
/
/
c