Tutorial Files (Google Drive)

https://drive.google.com/drive/folders/0B2PLEY5qC5zkV3JfUFBDTGpqSFk?usp=sharing


In this example, we want to achieve a group of zombies climb up along the wall like a hill. 

It looks difficult but very simple, let's dig it out. If we think over this, you could found, there are 2 groups of agents.

In our scene, we have 2 groups of agents, the orange and blue ones. The orange agents will be placed on the hill and wriggling there without locomotion, and they forms a shell.

And the blue group of agents will run to the hill and climb up along the hill.



Let's first look at the orange agents. They will be placed from the polygon mesh, and the method is the exactly the same as Men-man.

We need to create the follicles and use some scripts parent constrain the agents into the follicles, then generate a new placement from the well-placed agents.

And these agents will be placed and toward the top of the hill



The logic of this orange group agent are also very simple. Just a group of action playback in action group. The just wriggling on spot without moving to any direction



And let's take a look at the 2nd blue group of agents. We place them like the below picture and make it follow the terrain.



And we also, we need to build some scene perception elements for make the agents can feel the environment correctly.

We want our agent run along the terrain, and then climb to the hill toward the target spot, then if the agent reach the top and enter the bound, it will turn to dynamics ragdoll and push by a small force outside the hill.


And their logic setup is:


And we can simulate and cache 700 frames, and start shooting it from the frame 500: