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 / boxes vs. spheres

Author
Message
hpfan273
18
Years of Service
User Offline
Joined: 19th Jan 2007
Location:
Posted: 1st May 2007 23:52
question:
what size circle is the equivalent size as this code:?

what i mean is... what number would go where the X is in this next code:


Why do they turn against me? Especially when i need them the most?
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 2nd May 2007 00:05
Probably 7.5 since sphere takes a radius I believe and the box uses width, height, depth. It really wouldn't have been too difficult to place a sphere inside a ghosted box and try different values yourself.


Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 3rd May 2007 01:30
Or if you mean that the vertex from the box just touches the surface of the sphere, use pythagoras.

15 / 2 = 7.5

sqrt(7.5^2 + 7.5^2 + 7.5^2)
= ~13

Login to post a reply

Server time is: 2025-05-29 05:55:58
Your offset time is: 2025-05-29 05:55:58