First…
Maybe a “2D style” using Ray casting from the capsule like This ?
If some rays = “oh oh…” then “aaaaaaaah…”