Versions Compared

Key

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

In Atoms you can save your simulation on disk using the atoms cache format, then it is possible to reuse these caches with the "cacheReader" behaviour module. The Atoms Cache is lightweight and fast. It can increase the performances of your scene dramatically compared to using live simulation.


Exporting a cache

  • Create an agent group and set it up following one of the previous tutorials.
  • Export the cache following the steps described here.



Importing a cache

You can import a cache in a scene using the cacheReader behaviour module

  • Drag and drop the cache file with no padding mycache.atoms inside the content browser.
  • Create and agent group.
  • Add a cacheReader behaviour module.
  • in the cachePath attribute of the cache reader module pick the cache file (the file named yourCacheName.atoms)asset you just created.
  • You can create multiple agent group to load different or the same cache multiple times. You can also move them around and rotate them.
  • Press play.
Info

Caches exported from Unreal won't contain any geometry information. If the agent types used by the cache are not living in your content, please recreate them before importing a cache. Otherwise you might link them manually later.