Versions Compared

Key

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

...

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


Samples Download

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

...

Open the sample file, you may notice, can see 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 to run follow the road, avoid the cars and finally are absorbed by the spacecraft. 

...

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



And we created create a moving spot and a logic with it, when the agents near it (distance distance between the agent and the spot less than 750), agents will be lifted up by drag force toward the spot direction:



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

...

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


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

...