This script is not that difficult to understand. Basically the character moves at a certain speed in any direction. There are also waiting time implemented so that it wouldn't move all the time but to have mini breaks in between.
I downloaded Unity standard assets to get a basic first person controller script. The picture below shows how it is implemented. The first person controller provided by Unity comes with all basic settings needed for a first person shooter player character
Implementing Navigation and Navigation Agent meshes The picture below demonstrates navigation so that AI character know the path to walk and acknowledge the obsticles AI characters also require a component to make them understand the navigation.
Comments
Post a Comment