Changeset 6191 for code/branches/presentation2/src/orxonox/graphics
- Timestamp:
- Dec 2, 2009, 9:06:19 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/graphics/Camera.cc
r6170 r6191 42 42 #include "Scene.h" 43 43 #include "CameraManager.h" 44 #include "sound/SoundManager.h" 44 45 45 46 namespace orxonox … … 131 132 this->cameraNode_->setOrientation(Quaternion::Slerp(coeff, this->cameraNode_->_getDerivedOrientation(), this->getWorldOrientation(), true)); 132 133 } 134 135 // Update sound listener transformation 136 if (GameMode::playsSound() && this->bHasFocus_) 137 { 138 SoundManager::getInstance().setListenerPosition(this->getWorldPosition()); 139 SoundManager::getInstance().setListenerOrientation(this->getWorldOrientation()); 140 } 133 141 } 134 142
Note: See TracChangeset
for help on using the changeset viewer.