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.

Newcomers DBPro Corner / Could not wrap my head around ATANFULL (for Turret object)

Author
Message
MatriX
21
Years of Service
User Offline
Joined: 19th Oct 2003
Location: Deer Park, New York
Posted: 31st Dec 2008 07:40 Edited at: 31st Dec 2008 07:44
I was trying to get an object to point at another object while using Curveangle (to prevent lag time lag.) After fighting for a while with ATANFULL for a few days I gave up and switched to a not so pretty method of obtaining the angle. Finally it works as



Basically I was using something like this:



What was I doing wrong? I'd rather use the ATANFULL function as I'm sure this is more efficient. Thanks

Wannabe Game Designer. Wannabe Programmer. Expert Dreamer.
Long Island Amateur Game Development Group http://www.meetup.com/LIAGDG/
MatriX
21
Years of Service
User Offline
Joined: 19th Oct 2003
Location: Deer Park, New York
Posted: 31st Dec 2008 21:32
Nevermind I just picked up EZRotate. I think that will answer all my needs.

Wannabe Game Designer. Wannabe Programmer. Expert Dreamer.
Long Island Amateur Game Development Group http://www.meetup.com/LIAGDG/
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 2nd Jan 2009 21:56
Yeah - good luck with that LOL...

I your XROTATE call would have been better served with ROTATE OBJECT id,x,y,z

P.S. Like the approach though

Login to post a reply

Server time is: 2024-11-25 14:52:30
Your offset time is: 2024-11-25 14:52:30