Hey, I'm sure this question has been asked alot, and I tried to solve it my self. I'm using DBC Enhanced and am trying to get an object to point at the mouse cursor. The object (turret) is the limb of another (tank) and the turrets rotates on top.
Both object move around a map in the top down perspective.
I tried to use ATANFULL() and WRAPVALUE() with limited success. They worked perfectly, but only when the tank was positioned where it was "spawned" at 0,0,0. The further I went away from the point the less and less acurate the pointing to the cursor became. So by the time I was say "a screens worth" away from the starting point, the turret would basically point in the opposite direction of the cursor.
Any ideas? Thanks
P4 2.4Ghz HT, 512MB RAM, ATI Radeon 9600 128MB, 19" Viewsonic, 80GB HD