Stealth AI – Animation and Mecanim

The AI’s movement is driven by Unity’s navAgent system and has been set up to work in a similar fashion to the player avatars animation, the only difference being instead of getting a target direction and speed from controller input, it references the navAgent script results.


Above is the greybox model for the patroller AI. This rig has basic run, walk animations along with a few extra miscellaneous ones for specific situations e.g. search animation and surprised.


Image of AI movement test scene, when given a target position and speed the AI will pivot, turn, walk or run to reach it.

In the future I will look into the possibility of making a more general base script that could handle both the AI and player mecanim movements, seeing as they both use the same calculations.

Stealth AI – Animation and Mecanim

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s