I developed some applications that allow the user to explore an interior environment in 1st person and, in order to obtain a smooth walking while dealing with all the collisions with walls and objects my scripts grew in complexity so,
premising that I know that navmeshes are mainly designed to compute paths for a moving agent, I was wondering: is there a way to take advantage of navmeshes to navigate in 1st person? Or would it be just a waste of CPU time?
Thank you for any advice.
Using a navmesh to navigate in 1st person, you would have to recalculate the agent's path on every user input. You would have a very hard time to keep the walking smooth when sliding along a wall. (Sliding against a wall is essentially walking into the wall, detecting and correcting that and using only the part of the direction vector that is tangent to the wall - achieving similar smoothness using navmesh navigation would be hard.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With