Box3F T3DSceneComponent::getWorldBox()
{
   if (DirtyWorldBox && !LockWorldBox)
      _UpdateWorldBox();

   MatrixF mat = getTransform3D()->getWorldMatrix();
   Box3F box = getObjectBox();

   mat.mul(box);
   return box;
}
Ejemplo n.º 2
0
glm::mat4 Camera::calculateViewMatrix() {
    return getTransform3D().getInverseModelMatrix();
}