FIX: Actually set the transform so first person camera works again

This commit is contained in:
Dave Corley 2024-07-03 23:02:20 -05:00
parent 7d884747fa
commit fc65643224

View File

@ -52,6 +52,7 @@ namespace MWRender
osg::Quat orient = worldOrient * mRotate * worldOrientInverse * matrix.getRotate(); osg::Quat orient = worldOrient * mRotate * worldOrientInverse * matrix.getRotate();
matrix.setRotate(orient); matrix.setRotate(orient);
matrix.setTrans(matrix.getTrans() + worldOrientInverse * mOffset);
matrix *= osg::Matrix::scale(worldScale); matrix *= osg::Matrix::scale(worldScale);