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 / Getting lenght of object

Author
Message
Imerion
21
Years of Service
User Offline
Joined: 13th Oct 2003
Location:
Posted: 16th Aug 2004 05:16
Does anyone knows how to get the length, width and height of a cube?
I need the full lenght of an object, something like
olenght = Object Lenght(30)
Are there any routines that do this? Since I can't seem to find any built-in commands for it.
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 16th Aug 2004 05:18
width = object size x()
height = object size y()
depth = object size z()


If the object has been scaled, you'll need to factor that in yourself manually.

"eureka" - Archimedes
Imerion
21
Years of Service
User Offline
Joined: 13th Oct 2003
Location:
Posted: 17th Aug 2004 02:28
Uh, I didnt knew I could do that! Great! Thanks man!
Imerion
21
Years of Service
User Offline
Joined: 13th Oct 2003
Location:
Posted: 17th Aug 2004 02:53
Doesn't seem to work... Is my version to old? I can only use object size(1) and then I get a total number of all sides...
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 17th Aug 2004 04:44
oh crap. maybe those aren't in classic

"eureka" - Archimedes
Balid
21
Years of Service
User Offline
Joined: 21st Nov 2003
Location: MI, USA
Posted: 17th Aug 2004 09:46 Edited at: 17th Aug 2004 09:47
Quote: "
width = object size x()
height = object size y()
depth = object size z()
"


There in classic. But you have to put the object number in the ().
width = object size x(1)
height = object size y(1)
depth = object size z(1)

Login to post a reply

Server time is: 2025-05-25 13:18:11
Your offset time is: 2025-05-25 13:18:11