You can create an Agent Group by using the shelf button or via the Atoms Menu: Atoms > Create Agent Group.
Setting up the agent group
Maya
Please make sure the attribute editor is visible and select the agent group node.
Click on the "Add" 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 Go inside agentGroup1_geo node, select the agentGroup1 node and open the parameters editor. In the Modules tab select the "gridLayout" item from the "Behaviour Modules" combo box and then press the "Add Behaviour Modules" button. Go inside the "Modules Attributes" tab and in the child "gridLayout" tab set:
- the size parameter to (3,0,3)
- 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. robotWalknewManWalk). Set the startFrame value to 0.
Click on Maya the 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.
Hit the play button to run the simulation.
Widget Connector | ||||||
---|---|---|---|---|---|---|
|