How to find an air pocket?

How would I go by finding an air pocket?

I am making a captions system. Right now it just points to the location of the sound. I want it to point to the location of the closest airpocket to that sound. The only thing I can think how to do is is by using PathfindingService?



SFX is the caption text so like Door Opening or Slapping Ruler

This is the game if anyone wants to see how it currently works: CaseOh's Basics - Roblox
To access it type :captions in the chat, and most sounds should work (excluding the most important one - CaseOh slapping ruler sound, because that would make it too op because it goes straight to his location)

3 Likes

As far as I remember and can find, there isn’t a default way to do that. I like your idea about pathfinding and I’d say give that a shot because most solutions I’m can think of are just different variations on that.

I think a difficult part could be if there are two paths to reach the sound source so you should hear the sound from multiple places but you might be able to ignore that depending on your map. If that is important I think there are a few other solutions.

1 Like