Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / Rotate Object to a cursor point

Author
Message
AluminumPork
21
Years of Service
User Offline
Joined: 28th Oct 2003
Location: Duluth, MN, USA
Posted: 30th Jan 2004 08:16
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

AluminumPork
21
Years of Service
User Offline
Joined: 28th Oct 2003
Location: Duluth, MN, USA
Posted: 31st Jan 2004 03:09
Anyone? This is extremely important to the gameplay. Thanks

P4 2.4Ghz HT, 512MB RAM, ATI Radeon 9600 128MB, 19" Viewsonic, 80GB HD

Login to post a reply

Server time is: 2025-06-28 11:22:25
Your offset time is: 2025-06-28 11:22:25