MavMesh to Restrict PLayer

Hello,

I watched the video again and I have a question.

Is it possible to restrict player movement only to the NavMesh Baked Area, via the NavMesh component?

For example, can I add NavMesh component on my Human Character (not the Zombies) and via some configuration, not allow it to move past the NavMesh Baked area?

Thank in advance

Hi StrawHat,

Yes, that’s possible. This tutorial looks promising. Maybe it’ll help you solve the problem.

Please feel free to ask our helpful community of students over on our Discord chat server.


See also:

Thank you very much

Hello,

After some testing I found the problem.

I was using the new input system and forgot to .action.Enable() at OnEnable().

After that, NavMesh baked plane would restrict movement of a character only on that plane if that character had a NavMeshAgent component attached.

Good job on finding and solving the problem. :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms