Game Development Community

Interior size?

by Stefan Beffy Moises · in Torque Game Engine · 04/24/2002 (10:09 am) · 22 replies

Got a little problem here: I'm working on rendering interior objects in Frank B's MapGui... and so far it works showing a little bitmap dot for each interior... but how do I get the size of the Interior object do draw a rectangle respresenting the object?
I'm using
...
if (shape->getType() & InteriorObjectType) {
   Point3F newCoord = shape->getPosition();
   Box3F shapeBox = shape->getWorldBox();
   F32 objX = shapeBox.len_x();
   F32 objY = shapeBox.len_y();
   ...
   // todo: scale object size down to fit in the mapgui
   dglDrawRect(RectI(newCoord.x,newCoord.y,newCoord.x+objX,newCoord.y+objY),mColor);
}
but I'm not sure that's correct..?!
And I'm not sure how to scale it down to fit the mapgui?
Anyone messed around with Frank's code yet?
Thanks!!
Page«First 1 2 Next»
#21
01/26/2004 (1:06 pm)
New link is tork.beffy.de
#22
02/14/2007 (4:05 pm)
Every single link on this thread is outdated, even tork.beffy.de doesn't contain any downloads or anything related to this thread at all...

does anyone have any idea where to get ahold of this resource?
Page«First 1 2 Next»