Calcualting angle to Destination Point given origin point and current rotation
My geometry and trig are rather rusty, I am working on a project where I am given a destination point in a cartesian coordinate system (IE X: 0, Y: 0) and the objects current rotation and position (or point). I want to be able to find out what rotation or angle my object needs to be to line up with said destination point.
So for example lets say my objects start out a 0,0 with a rotation of 0. The destination I am given is 3, 4. What math would I need to find the angle i need to set my object to to head in a straight line to that path?