how to calculate bounding box

nasirus1983

28-02-2009 01:08:48

Hi,

How to calculate bounding box of bone, to create an actor for it ?
I know how to make length, but what about thicknes ? And then how to recalculate this bounding box to have propely scale beetwen nxogre and ogre ?

gmz1982

11-03-2009 16:38:58

Bones don't have bounding boxes because they don't contain real mesh data:
http://www.ogre3d.org/forums/viewtopic.php?f=2&t=36466&p=252344

However, you can calculate the length of a bone from its position and it's child.
http://www.ogre3d.org/addonforums/viewtopic.php?t=5289