- Home /
Question by
FallingRocketGames · Apr 09, 2019 at 09:27 PM ·
navmeshagentdragclick to move
NavMeshAgent stop
I'm using a navmeshagent in a click to move game, I'm also using a drag script to rotate the camera on the Y axis, but when I release the drag the navmeshagent goes to the position whereI released the screen, how could I fix this problem? any ideas please :(
Comment
Answer by Casiell · Apr 11, 2019 at 02:48 PM
You would need to check the distance between where you started touch and where you stopped it. If that distance is higher than a treshold you set, then don't tell your agent to move