1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-22 14:19:42 +01:00

LP-29 fixed minor typo

This commit is contained in:
Philippe Renon 2016-03-05 17:49:49 +01:00
parent 0f25a510f5
commit a1ad54310d

View File

@ -384,7 +384,7 @@ public:
osg::Matrix cameraMatrix = cameraRotation
* osg::Matrix::rotate(roll, osg::Vec3(0, 1, 0))
* osg::Matrix::rotate(pitch, osg::Vec3(1, 0, 0))
* osg::Matrix::rotate(yaw, osg::Vec3(0, 0, -1.0)) * cameraPosition;
* osg::Matrix::rotate(yaw, osg::Vec3(0, 0, -1)) * cameraPosition;
// Inverse the camera's position and orientation matrix to obtain the view matrix
cameraMatrix = osg::Matrix::inverse(cameraMatrix);