- Home /
Question by
HandsomeJackRussell · Apr 25, 2018 at 09:55 PM ·
c#navmeshnavmeshagentspeed
C# Changing the speed/velocity of an enemy independent of navmesh
Hello! So what I want to do is make it so that when an enemy enters a certain area, his speed changes. Some areas he moves slower, and some areas he moves faster. But the issue is that the navmesh applies to every enemy on the screen, so I can't just change navmesh.speed when one enters an area, or else it'll change the speed of all of them, right? So I'm wondering if there's some way to change the speed of just one enemy on a navmesh?
I'm also not positive what the difference between speed and velocity is. I think speed is what I want to change, though.
Comment