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 / Difference between model size and reported size

Author
Message
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 27th Apr 2003 19:55
Does anyone know why my model which has a size of 750 in the Z-axis is reported as 1.9 using the OBJECT SIZE Z() method?
Thanks in advance.
All the Best,
StevieVee
bushsucks
23
Years of Service
User Offline
Joined: 8th Mar 2003
Location: United States
Posted: 28th Apr 2003 03:13
How do you know it's 750? Can you show your code

don't re-elect bush
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 29th Apr 2003 01:36
I know it's 750 because I've scaled it when I brought it in...

zScale# = (750 / object size z(n)) * 100
scale object n, zScale#, zScale#, zScale#

But it reports

object size z(n) = 1.9

after the scaling

Thanks in advance.
All the Best,
StevieVee
bushsucks
23
Years of Service
User Offline
Joined: 8th Mar 2003
Location: United States
Posted: 29th Apr 2003 03:44
scale object works by percents, so putting:

scale object 1,100,100,750

would leave the x and y size the same, while increasing the z size by 750%, this may be your problem, if not get back to me

don't re-elect bush
Chiwawa
23
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 29th Apr 2003 04:01
try this:



it work.....but..maybe you imported your model..and the modeler..that you use..do not use the same unit than..DB.....
arras
23
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Slovakia
Posted: 29th Apr 2003 13:32
I am not totaly sure now but I think that afther scaling object is not repotring right walues, at last during collision detection it detect size like before scaling...

Login to post a reply

Server time is: 2026-06-12 06:56:49
Your offset time is: 2026-06-12 06:56:49