From ee4b6621e79172c3765ac68ec7425bca6b848669 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Thu, 11 May 2017 10:29:08 +0200 Subject: [PATCH] Fit the property definied positions to the axis definition by negating them --- simgear/sound/sample.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simgear/sound/sample.cxx b/simgear/sound/sample.cxx index ba4ee6e7..89c26056 100644 --- a/simgear/sound/sample.cxx +++ b/simgear/sound/sample.cxx @@ -167,9 +167,9 @@ SGSoundSample::~SGSoundSample() { void SGSoundSample::update_pos_and_orientation() { if (_use_pos_props) { - if (_pos_prop[0]) _relative_pos[0] = _pos_prop[0]->getDoubleValue(); - if (_pos_prop[1]) _relative_pos[1] = _pos_prop[1]->getDoubleValue(); - if (_pos_prop[2]) _relative_pos[2] = _pos_prop[2]->getDoubleValue(); + if (_pos_prop[0]) _relative_pos[0] = -_pos_prop[0]->getDoubleValue(); + if (_pos_prop[1]) _relative_pos[1] = -_pos_prop[1]->getDoubleValue(); + if (_pos_prop[2]) _relative_pos[2] = -_pos_prop[2]->getDoubleValue(); } _absolute_pos = _base_pos; if (_relative_pos[0] || _relative_pos[1] || _relative_pos[2] ) {