my code:
Code: Select all
irr::core::aabbox3df bBox = node->getTransformedBoundingBox();
irr::core::matrix4 m = node->getAbsoluteTransformation();
return bBox.getCenter(); // always returns 0,10,0
return m.getTranslation(); // always returns 0,0,0
i've done this before in blitz, but now trying to learn c++ and irr1.4beta some things are just falling apart...