Versions Compared

Key

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


You can create an Agent Group by using the shelf button or via the Atoms Menu: Atoms > Create Agent Group.

Image RemovedImage Added



Setting up the agent group

Maya

Please make sure the attribute editor is visible Go inside agentGroup1_geo node and select the agent group node.Click on agentGroup1 node and open the parameters editor. In the Modules tab select the "gridLayout" and then press the "Add Behaviour Modules" button and add a gridLayout module. Type the agent type name you entered previously in the "agentType" field (i.e. testRobot). 
Set the "size" field . Then inside the "Modules Attributes" and "gridLayout" tab set the size parameter to (3,0,3) .and change the agent type parameter to the one you created in the previous section

Then do one of the followings:

  • Click again on Return to the "Add" button and add a stateMachine module. Click again on the "Add" button and add a clipReader module. Type Modules" tab, select a "stateMachine" module from the list and press the "Add Behaviour Module" button.
  • Return to the "Modules" tab, select a "clipReader" module from the list and press the "Add Behaviour Module" button. Inside the "Modules Attributes" and "clipReader"  type the animation clip name you entered previously in the "clipName" field (i.e. robotWalk). Set the startFrame value to 0.

Click on Maya time slider rewind button and your 9 agents will appear in the viewport .
Hit the play or press the updateSim button to run the simulation. 

Houdini

Go inside agentGroup1_geo node and select the grid1 object. Set the row and columns to 4 and 4. Then select the pointsLayout_direction and set the value to (1,0,1). Atoms creates an agent on every point of the mesh. You can edit the direction and agent type of each agents with the atoms_pointsLayout_directions and atoms_pointsLayout_agentTypes nodes.

Then do one of the followings:

  • Click again on the "Add" button and add a stateMachine module. 
  • Click again on the "Add" button and add a clipReader module. Type the animation clip name you entered previously in the "clipName" field (i.e. robotWalk). Set the startFrame value to 0.

Click on time slider rewind button.
update the simulation, forcing the recook of the AtomsSim_DOP node.

Image Added


Hit the play button to run the simulation. 


Image RemovedImage Added