Miarmy Crowd Simulation Documentation (English)

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

We want to achieve a group of agents were absorb by the spacecraft.


Samples Download

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


Workflow

Open the sample file, you may notice, we've built a scene with a road and some cars in it. Also there is a spacecraft in the middle air moving forward, and we we want to our agents run follow the road, avoid the cars and finally are absorbed by the spacecraft. 



We made the cars area as the combined mesh zone, please notice that the zone is combined by several meshes as an single mesh although it looks like separated.



And we created moving spot, when the agents near it (distance less than 750), agents will be lifted up by drag force:



We have a group of running agents at the start point. the will do the following logic:

  • run follow the road
  • avoid the cars
  • absorbed by the the spacecraft
  • spot absorbing near by spacecraft and hold onto it

And we translate it into the logic of Miarmy:

  • follow road
  • avoid zone
  • follow the spot when near it
  • slop moving when near it


These 3 logic, avoid each others, follow road, and avoid cars, we made by the simple sentences:


And then, when the spot (spacecraft) is near which distance less than 750 (maya unit), we make our agent move toward it.

When agent is left, we rotate to left and follow it, and also we move up and forward to lift.


When they are moving up, their hands, legs are all enable dynamics, and the body will rotate for some random degrees 



After they moving into the bound, they will be parented into the bound and play action:stand and stop moving.



It is done, now we can cache it and render it:

























  • No labels