|
Getting Angle with two points?
Hey,
I am having a bit of trouble trying to remember how to get an angle in radians with two points.
I have an object that I want to rotate to face whereever the mouse is currently at.
So what I have to work with is the Mouse XY Postion and the Objects XY Position.
I assume you just handle it like a right triangle? And get the angle. Here is something I tried using vectors, but I guess I am messing something up as it isn''t working right: (The +18''s are just to get to the center of the object)
Any ideas what I am doing wrong or other suggestions how to do this.
Thanks,
-Peddler
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement