- Home /
Question by
recon472 · Jun 22, 2014 at 04:30 PM ·
ainavmeshpathfinding
Restricting NavMesh path finding directions
Hi, I am working on a game where you can walk only in eight directions. Up, Down, Left, Right and the diagonals in between. The problem is that navmesh pathfinding system utilises all angles when finding a path. Is there any way to tell it to use only those eight? Its a top down shooter
Comment
Answer by destructivArts · Jun 22, 2014 at 08:32 PM
Create the desired movement vector3, and then call NavMeshAgent.Move(moveVector);
I'm almost positive that will restrict its movement to the desired angle, but keep the Agent within the confines of your NavMesh.