Nice :) Thanks katopz.
On 1 December 2010 13:36, katopz <[email protected]> wrote: > if you mean boundingbox, it's here > http://away3d.googlecode.com/svn/branches/lite/bin/ExBoundingBox.swf > > src+libs > http://away3d.googlecode.com/svn/branches/lite > > still labs version, use at your own risk ;) > > hth > > > On 1 December 2010 19:49, Darcey Lloyd <[email protected]> wrote: > >> I didn't manage to find any answer to this either, so ended up stacking >> calculation like so (not pretty but works): >> >> var nContainer1W:Number = 0; >> var nContainer1Items:Array = new Array(); >> var nContainer1ItemXGap:Number = 100; >> >> for each (var item:* in nContainer1Items){ >> nContainer1W += item.width; >> } >> >> // add spacing >> nContainer1W += ((nContainer1Items.length-1) * nContainer1ItemXGap); >> >> Rinse and repeat for height and depth. :\ >> >> >> D >> >> >> >> >> On 1 December 2010 12:35, Jerome <[email protected]> wrote: >> >>> In the past I either had to create variables to hold the size of an >>> ObjectContainer3D, calculating these values manually. I also used >>> Prefab to get the size of imported 3D objects. >>> >>> If anyone has a way to get that data at runtime please share! >>> >>> :) >>> >>> On Nov 30, 8:21 pm, Darcey Lloyd <[email protected]> wrote: >>> > Hi, >>> > >>> > Anyone know how to get the width, height & depth of an >>> ObjectContainer3D in >>> > Away3DLite (I'm using latest trunk). >>> > >>> > For now I am looping through all the items stored in an array and >>> adding >>> > spacing etc to get the dimensions, however it would be great if I could >>> get >>> > the width, height & depth from the container. >>> > >>> > minX, maxX is not a part of ObjectContainer3D in lite. >>> > >>> > Any ideas? >>> > >>> > Thanks >>> > >>> > Darcey >>> >> >> > > > -- > Regards > ----------------------------------------------------------- > Todsaporn Banjerdkit, katopz, http://sleepydesign.com > Away3DLite and JigLibFlash Developer Team >
