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?