scale in CollisionPrimitives::TreeCollision::TreeCollision

turkeypotpie

02-09-2006 06:33:23

In method:
TreeCollision::TreeCollision( const World* world, Ogre::SceneNode* node, bool optimize ) : Collision( world )

I think


scale = node->_getDerivedScale();


works better than:

scale = node->getScale()


I ran into this when I had a dot scene file with multiple levels of nodes, each with a scale factor.