Hello,
I have this NavMesh in my scene:
The player has to collect some objects and combine them before the door (well.. the gate) opens and he can pass through.
I'm looking for a way to stop the player to go through.
I searched the forum a lot and read all the door tutorials, I tried several approaches but I cannot make it work.
What's the best way to do this?
- substitute the NavMesh
- make a Hole in the NavMesh and then remove it
- use a NavMesh Obstacle
- put a Hotspot over the whole blocked part so the user cannot click there (as the 2D example)
- ...
The Hotspot seems the best way to do this, but since I will have a clickable NPC just near the gate I cannot put the Hotspot to completely block the player to go through.
What do you suggest?
Comments
Reducing the Accuracy slider in the Navigation Mesh component will improve the speed, but you'll need to do a bit of playtesting to find the best value - too low and characters will sometimes not walk around obstacles correctly. You can also set Character evasion to None for an additional performance boost.