We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f14358a + d5a95ed commit 0261f3bCopy full SHA for 0261f3b
src/object/ambient_sound.cpp
@@ -149,6 +149,7 @@ AmbientSound::start_playing()
149
150
sound_source->set_gain(0);
151
sound_source->set_looping(true);
152
+ sound_source->set_position(m_col.m_bbox.get_middle());
153
currentvolume=targetvolume=1e-20f;
154
sound_source->play();
155
} catch(std::exception& e) {
0 commit comments