spacegaier
11-03-2008 20:35:17
Is there an easy way to load a mesh into a body and set the shape excactly to the size of the mesh? Or do I have to built up an Ogre::Entity first, get the size of its node and apply this size to the new NxOgre::Shape?
dbrock
11-03-2008 20:40:57
Get the entities AABB min/max and get their sizes.
spacegaier
13-03-2008 16:36:51
I've found this function:
Vector3 goalSize = goal1->getEntity()->getBoundingBox().getSize();
Seems to be even more simple than your proposal. However: Thanks!