NavMeshPlus
NavMeshPlus copied to clipboard
How would I snap the movement to a 8 directional system?
Im making a game with this library and was wondering how to make my enemy's movement look like the player's, I have everything setup and working fine, I just need to make the movement stick to those 8 directions how could I go about doing this?
nevermind, found a souloution, I just needed to disable auto braking and set the acceleration to a overly high amount (mines at 1000)
Hello @RUGMJ
How does 'disable auto braking' and 'acceleration' makes agent to snap the movement to a 8 directional system?
I would glad to include this trick into wiki.
Hello @RUGMJ
How does 'disable auto braking' and 'acceleration' makes agent to snap the movement to a 8 directional system?
I would glad to include this trick into wiki.
By itself it doesn't, but if you round the transform.position values with Mathf.round it has that effect