//Update the colliders based on the current position and orientation void snRigidbody::updateCollidersAndAABB() { for (vector<snICollider*>::iterator i = m_colliders.begin(); i != m_colliders.end(); ++i) { (*i)->updateFromTransform(); } computeBoundingVolume(); }
BoundingVolume* AbstractMesh::getBoundingVolume() const { if (_boundingVolume == NULL) { _boundingVolume = computeBoundingVolume(); } return _boundingVolume; }