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 6 Next »

In this example, we want to achieve a group of running horse riders were stumbled by the obstacle, and also some of the riders were shot by the arrows randomly and fall and the horses continue running.


Samples Download

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


Workflow

In horse rider original agent, the horse and rider roots are connected bone chain.

And since we need the agent enable dynamics perfectly, we need to setup carefully for the dynamics bones 5 Steps to Build Perfect Physical Character


We need to add the leg collide feel flag so that we can work with the collide logic.



Create scene, and put a kinematic primitive object and a placement node in it.

We're going to simulate a group of horse riders run forward, and the obstacle in front of them. We want our riders fall when the leg collide with the obstacle.

We simulate the fall by enabling dynamics and detaching body and weapon from the main bone tree.



Create the RBD emitter to simulate arrow, and setup some of the parameter like the second image below.

We setup it as the missile because we can make the arrow precisely hit the small part of agent body.



Also, we need to enable the RBD target on original agent so that the missile can trace them and hit.



We add some logic sentences for controlling this

Then let's simulate the scene.

Horse rider was tumbled by the obstacle and enable dyanmics, then rider detached from horse, and the weapon detached from hand of rider.



Horse rider was shot by arrow and detached from horse, and weapon detached from the hand of rider.

And the horse will continue run forward.








  • No labels