Here is a video of my problem.
I create the node like this:
Code: Select all
irr_node = smgr->addMeshSceneNode(smgr->getMesh("sphere.3ds")->getMesh(0));
Code: Select all
vector3d<f32> edges[8];
irr_node->getTransformedBoundingBox().getEdges(edges);
for(int i=0;i<8;i+=2)
{
driver->draw3DLine(edges[i],edges[i+1],SColor(255,0,0,0));
}
For some reason, my AABB doesn't move with the mesh properly (as shown in video), this causes problems with my AABB collision detection.
Interestingly, if I add another scene node in the same way, the first scene node moves the AABB of both of them but the second scene node and AABB both move in unison as they should do.