Detect when a bouncing rigidbody collides with a NavMesh (throwable Pokeball-type object)

I have a system where the player can throw/toss various capsules that spawn Mounts, vehicles, but i’d like to limit them to only spawn when they collide with a navmesh/floor. i.e. if they hit a wall, they bounce back with their rigidbody, and only spawn the mount when hitting the ground.

Right now it works fine spawning whenever it hits any object, but no matter how i try to sample the Navmesh using NavMesh.SamplePosition, it still spawns when hitting a wall. Any tips how i might detect if a collision is on a navmesh?

Why don’t you just have the ground have a different Tag, which you check upon collision?

i considered that, but i have lots of different surfaces such as “sand” and “grass” and “wood,” that sometimes also go on walls, so i was hoping to find a different way to just make sure the mount can only spawn on a “walkable” surface. But I’ll try that for now!