What if your player goes through an object when you click the other side of that object? It shouldn’t be like that, right?
Since we added the NavMesh and made the player move in the last article. The player moves but it moves through objects. Now we will fix this by making these objects static.
Create Static objects
- Choose the objects which will be static
- Then you go to Inspector and click Static