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.

DarkBASIC Discussion / Object Distance Function

Author
Message
The Wilderbeast
20
Years of Service
User Offline
Joined: 14th Nov 2005
Location: UK
Posted: 2nd Oct 2006 21:11
Hi, i thought this funtion might be useful to a few people. What it does is work out the distance between 2 3d objects. Those of you who are maths wizzes will notice that i am using Pythagorous.



a is object number a, b is object number b. return value is d# which is distance and is in world units.

Gamedesign er20
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: The one place you would never look...
Posted: 3rd Oct 2006 00:34
Nice function The Wilderbeast, that will come in handy.

Cocacola and Pepsi aren't that differnt. Deal with it.

Login to post a reply

Server time is: 2026-07-06 20:15:49
Your offset time is: 2026-07-06 20:15:49