Skip to content

Commit

Permalink
FIX: Actually set the transform so first person camera works again
Browse files Browse the repository at this point in the history
  • Loading branch information
magicaldave committed Jul 4, 2024
1 parent 7d88474 commit fc65643
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/openmw/mwrender/rotatecontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ namespace MWRender

osg::Quat orient = worldOrient * mRotate * worldOrientInverse * matrix.getRotate();
matrix.setRotate(orient);
matrix.setTrans(matrix.getTrans() + worldOrientInverse * mOffset);

matrix *= osg::Matrix::scale(worldScale);

Expand Down

0 comments on commit fc65643

Please sign in to comment.