Behaviour modules
A Behaviour module has a set of methods which are called during the simulation at different stages. They are called in the following order:
Init simulation (at the beginning of the simulation, before the first frame)
Pre frame (for every frame before the agents are created)
- Agents Created (when some agents are created)
- Agents Killed (when some agents are deleted)
Init frame (at the beginning of each frame after the agents are created)
End frame (at the end of each frame)
Pre Physics (Before the physics is run)
- Post Physics (After the physics is run)
End simulation (at the end of the simulation - after the last frame)
Their responsibility is to interact with each agent node network and edit their metadata during the simulation. Each behaviour module usually interacts only with the agents created by the agent group owning the module.
In Atoms VFX software, new custom behaviour modules can be created directly in your scene with python using the Atoms UI or in C++ as new Atoms plugins. Please look at the technical documentation for more information.
Module parameters can be edited either by modifying directly their parameters or in case they are overridable (meaning they can be modified per agent) users can drive them with metadatas on the agents themselves.
The agent metadata names have to follow the following naming convention: MODULE_NAME@ATTRIBUTE_NAME
For instance, if you want to drive dynamically with a metadata the "weight" parameter of a CurveField module named "MyCurveField" the metadata name should be "MyCurveField@weight".
If the metadata type is not the same as the attribute type the metadata is going to be ignored.
In this section, you can find a list of all the available behaviour modules.
Copyright © 2017, Toolchefs LTD.