Quantcast
Channel: Questions in topic: "bots"
Viewing all articles
Browse latest Browse all 77

Unity NavMesh path-finding with my own moment script.

$
0
0
I have kept my game fairly modular up to this point. Players and bots in my game use the same scripts for the most part. I also want to make the bot movement the same as the player movement. My player moves with the method call here that takes two floats for direction and a bool to jump. player.Move(Input.GetAxis("Horizontal"), Input.GetAxis("Vertical"), Input.GetButton("Jump")); I would like my bot to be able to use that same Move method and navigate the scene avoiding obstacles. How can this be done? Thanks in advance.

Viewing all articles
Browse latest Browse all 77

Latest Images

Trending Articles





Latest Images