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 Professional Discussion / does anyone hav ethe sqrt collision eqations on them

Author
Message
Terabyte
22
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 25th Jan 2003 18:22
does anyone hav ethe sqrt collision eqations on them i'd be really gratefull please don't say it's in the help files
cus it's not on mine
please just copy and paste it herecus i badly need it for a game
pleeeeeeasee!!!!
soming like if sqrt (object psition x()^2+ onject position y
if you have it you'll know uv goto it
I have a word of advice...
..don't piss on an electric fence!
haggisman
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 25th Jan 2003 18:27
Do you mean the equation for the distance between two objects positions?

Specs:- 1GHZ athlon, Radeon8500, 192mb ram, winxp
Hubdule
22
Years of Service
User Offline
Joined: 3rd Sep 2002
Location: Gundelsheim
Posted: 25th Jan 2003 18:28
DeltaX#=Object Position X(obid1)-Object Position X(obid2)
DeltaY#=Object Position Y(obid1)-Object Position Y(obid2)
DeltaZ#=Object Position Z(obid1)-Object Position Z(obid2)

Distance#=SQRT((DeltaX#*DeltaX#)+(DeltaY#*DeltaY#)+(DeltaZ#*DeltaZ#))

??? Do you mean this one ?

Terabyte
22
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 25th Jan 2003 19:09
mmmmmmaybe

I have a word of advice...
..don't piss on an electric fence!
Attreid
22
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 25th Jan 2003 21:27
hubdule's code is well, but I prefere mine :

^

it's easier to use in a programm

I'm following John, but I'm not john.
Lol, it is funnier in french
Terabyte
22
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 25th Jan 2003 21:48
yes thats the one
thanks
the mmmmmmmeeee
statement was my friend filling out for me while i went and got somthing
cheers mate

I have a word of advice...
..don't piss on an electric fence!
Terabyte
22
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 25th Jan 2003 21:48
mercie boucoup

I have a word of advice...
..don't piss on an electric fence!
Shock
AGK Developer
22
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 25th Jan 2003 22:16
lol

...::::ShockForge::::...

Ambient Software coming soon!

Login to post a reply

Server time is: 2025-05-17 13:10:14
Your offset time is: 2025-05-17 13:10:14