Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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


Samples Download

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

...

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

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


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



Create In simulation scene, and put a kinematic primitive object and a placement place node in itscene.

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

We simulate the fall The tumble should be simulated by enabling dynamics and detaching rider body and weapon from the main bone treefrom agent, also, we need to make the weapons detach from rider.



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

...

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

...

We add some logic sentences for controlling to control this.

Then let's simulate the scene.

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



Horse rider was riders were shot by arrow arrows and detached from horse, and weapon weapons detached from the hand hands of riderriders.

And the horse horses will continue run running forward.