Add a Collider to the obstacle, as well as a Collider + Rigidbody to the player.
The 3D Demo scene + Player is set up with such colliders to test with. If you load up the 3D Demo from the top toolbar, and set the Movement method to Direct (in the Settings Manager), then the player will be blocked by wall colliders instead of the NavMesh when moving.
Comments
The 3D Demo scene + Player is set up with such colliders to test with. If you load up the 3D Demo from the top toolbar, and set the Movement method to Direct (in the Settings Manager), then the player will be blocked by wall colliders instead of the NavMesh when moving.
Check Slow movement near wall colliders? in the Player's Inspector, and then set the layer name to match that of your table's collider.