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.

aisuprisegif

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.

AIVersion01_002.png

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.

Advertisements
Stealth AI – Animation and Mecanim

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s