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 / Yet another silly question!

Author
Message
Ian T
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 10th May 2003 23:53


It's been a long time, I used to know this, but...

I need to calculate the total distance between two objects in 3d space.

That's all .

I can't seem to find a command to do it and if there was another way, the memory has been recycled.

Thankee...
--Mouse

Famous Fighting Furball
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 11th May 2003 00:06
diffposx#=abs(object position x(obj1)-object position x(obj2))
diffposz#=abs(object position z(obj1)-object position z(obj2))
distance#=sqrt((diffposx#*diffposx#)+(diffposz#*diffposz#))
Ian T
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 11th May 2003 00:24
Ahhh... it was that final operation I was missing .

I need more mAtH l33t sk1lLz...

Thank you .

--Mouse

Famous Fighting Furball

Login to post a reply

Server time is: 2024-11-24 14:10:54
Your offset time is: 2024-11-24 14:10:54