From: ehofman Date: Thu, 29 Oct 2009 14:58:02 +0000 (+0000) Subject: multiply quats in the right order X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;ds=sidebyside;h=06f0b6030a4d372f3e3253e67f01d5763ce64e3c;p=simgear.git multiply quats in the right order --- diff --git a/simgear/sound/sample_openal.cxx b/simgear/sound/sample_openal.cxx index 75d663a5..561f06ed 100644 --- a/simgear/sound/sample_openal.cxx +++ b/simgear/sound/sample_openal.cxx @@ -198,7 +198,7 @@ void SGSoundSample::update_absolute_position() { // 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.