]> git.mxchange.org Git - simgear.git/commitdiff
multiply quats in the right order
authorehofman <ehofman>
Thu, 29 Oct 2009 14:58:02 +0000 (14:58 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 29 Oct 2009 22:04:17 +0000 (23:04 +0100)
simgear/sound/sample_openal.cxx

index 75d663a5121946e5ef928d38a3d9702660b45ee9..561f06ed38f9b90f93bde6e3139e2b604dcc455b 100644 (file)
@@ -198,7 +198,7 @@ void SGSoundSample::update_absolute_position() {
 
     // Compute the sounds orientation and position
     // wrt the earth centered frame - that is global coorinates
 
     // Compute the sounds orientation and position
     // wrt the earth centered frame - that is global coorinates
-    SGQuatd sc2body = _orientation*hlOr;
+    SGQuatd sc2body = hlOr*_orientation;
 
     // This is rotates the x-forward, y-right, z-down coordinate system where
     // simulation runs into the OpenGL camera system with x-right, y-up, z-back.
 
     // This is rotates the x-forward, y-right, z-down coordinate system where
     // simulation runs into the OpenGL camera system with x-right, y-up, z-back.