Skip to content

Commit

Permalink
📚 Add a comment describing the obstruction checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiradur committed Sep 30, 2024
1 parent 795f20e commit 05dd2f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/main/audio/SoundManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,11 @@ void SoundManager::updateObstructionFilter(const ALuint hardware_source)
}
else
{
/*
* Perform various line of sight checks until either a collision was detected
* and the filter has to be applied or no obstruction was detected.
*/

bool obstacle_was_detected = false;
std::pair<bool, Ogre::Real> intersection;
// no normalisation due to how the intersectsTris function determines its number of steps
Expand Down

0 comments on commit 05dd2f5

Please sign in to comment.