- Timestamp:
- Dec 8, 2009, 10:07:04 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/sound/WorldSound.cc
r6254 r6269 81 81 COUT(2) << "Sound: OpenAL: Invalid sound velocity" << std::endl; 82 82 83 const Quaternion& orient = this->getWorldOrientation(); 84 Vector3 at = orient.zAxis(); 85 alSource3f(this->audioSource_, AL_DIRECTION, at.x, at.y, at.z); 83 const Vector3& direction = -this->getWorldOrientation().zAxis(); 84 alSource3f(this->audioSource_, AL_DIRECTION, direction.x, direction.y, direction.z); 86 85 error = alGetError(); 87 86 if (error == AL_INVALID_VALUE)
Note: See TracChangeset
for help on using the changeset viewer.