Hello, so im using character controller for WASD movement, but i wanted to add navmesh agent in the game, so the player will be able to move with the mouse as well, while WASD works perfectly, navmesh agent, doesnt work (im using agent.destination = pos, tried setdestination and move as well, some times only rotates the player. I’ve tried disabling the character controller movement, but same problem.I’m using Unity 2018.3.7f1.
We’ll need more information to help you here, but it does sound like the Agent and CharacterController are conflicting somehow even though your attempt at turning the Controller off seemed to not help.
Show us what exactly you’re doing.
I’m trying to let players move with WASD and mouse in the same time
The code: https://pastebin.com/xsDFS1uU
Yeah, even with that part commented out you’re still using the Character Controller every frame, which overrides the Agent.
Most people instead “hack” a solution where they only have a NavmeshAgent and use WASD to move the target position, as well as controlling it with mouse clicks.
I see, thanks