I have a rigid body. I need to get the AABB in world space in the final position.
The scene was exported from 3DS Max, it contains the mesh and the physical data for single rigidbody.
const hkpCollidable* pCollid = phkPhysBody->getCollidable();
assert( pCollid != NULL );
const hkpShape* pShape = pCollid->getShape();
assert( pShape != NULL );
hkAabb hkBox1, hkBox2;
pShape->getAabb( pCollid->getTransform(), 0.0f, hkBox1 );
pShape->getAabb( phkPhysBody->getTransform(), 0.0f, hkBox2 );
But I get a boxes not in the final transformation of the body. Mesh located on the other axes in origin. Transformation is applied to shape when scene is loading.But the transformation of hkpRigidBody andhkpCollidable does not allow it.
How do I transform the AABB in the final position?