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 / Phalenx RTS tutorial tidbit question

Author
Message
Boe
17
Years of Service
User Offline
Joined: 30th Nov 2006
Location:
Posted: 28th Jan 2009 02:02
I'm currently using his RTS tutorial adapted slightly, but is there an updated command that equates to getSquaredDistance in the tut?

I'm using DBpro 6.8, I think
Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 3rd Feb 2009 12:46
No.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 3rd Feb 2009 21:11
Why would you need another command? Because the distances in question are only being compared, you get the same effect by comparing the distances without having to call the awfully slow sqrt() command. I doubt an internal DB command would offer any more speed over the written function itself.

Your signature has been erased by a mod because it's larger than 600x120

Login to post a reply

Server time is: 2024-09-28 02:20:17
Your offset time is: 2024-09-28 02:20:17