NavMesh Agent stopping buildings

Hi,
I’m following the Core RPG Course, and I faced a problem.
There are some buildings on my map, which behave a bit weird. If I move my character by holding down the mouse button, if I drag my cursor to certain pints of the house, the player just stops moving(it shakes a bit). But if I release the mouse, it goes to the deserved position.

@Brian_Trotter, could you help this student?

A few things to check here. I would start by making sure that the buildings are set to NavMesh Static, and rebaking the NavMesh.

The baked NavMesh should not overlap the building at the ground level.

At this point, the mouse should not detect a NavMesh.

Looking back on the codebase from where you are now, when you are doing continuous movement, there is no check to see if the location is currently on a NavMesh. This will be covered in a later lesson (Lesson 159, Raycasting to a NavMesh). It’s possible the problem won’t be resolved until then.

This topic was automatically closed after 14 days. New replies are no longer allowed.

Privacy & Terms