I have a mesh that I KNOW is 3000Km in diameter (drawing in 3DS). I am NOT scaling the object.
I can do a SceneNode::showBoundingBox and this command works properly and draws a box around my SceneNodes.
However, when I attempt to get the bounding box from the SceneNode, it returns very small numbers (0.5000, 0.5000, 0.5000) and my boxes that I draw are extremely small.
What am I missing?
Code: Select all
Ogre::Vector3 size;
Ogre::AxisAlignedBox bbox;
NewtonCollision* CollisionObj;
// The following is used to get the objects size in the universe
bbox = SB->Node->_getWorldAABB(); // Get the bounding box from Ogre
size = bbox.getMaximum(); // Get the maximum extents of this box.
CollisionObj = NewtonCreateBox(nWorld, size.x, size.y, size.z, NULL);
The size variable is not correct. Do I need to apply a scale to it? Is Ogre scaling without my knowledge? Does the camera's FOV have anything to with this (I do change the FOV)?
