Driving Entities with nParticles
As Golaem Crowd is particle based you may want to drive your Golaem entities on a Maya Physics simulation.
Here is a workflow to use a physics simulation to drive Golaem entities.
1. Set your terrain as a nMesh passive collider.
![](https://golaem.com/sites/default/files/01_passive%20collider.png)
2. Create a shape to fill with particles.
![](https://golaem.com/sites/default/files/02_box.png)
3. Fill with nParticles
![](https://golaem.com/sites/default/files/03_particles.png)
4. Create a force field.
![](https://golaem.com/sites/default/files/04_field.png)
5. Test your simulation and when you are happy with it create a Crowd Field
upon your particles.
![](https://golaem.com/sites/default/files/CrowdField.png)
6. Create a new EntityType and load your Golaem Character (Gcha).
7. Remove the terrain from the crowd Manager as we aren't going to use it.
![](https://golaem.com/sites/default/files/removeterrain.png)
8. In the Behavior editor, go inside your entityType Container just add a Locomotion Behavior
(fill it with your motions set) and an Adapt Orientation Behavior
(change its mode to velocity based).
![](https://golaem.com/sites/default/files/CrowdBeLocomotion_1.png)
![](https://golaem.com/sites/default/files/CrowdBeAdaptOrientation_1.png)
![](https://golaem.com/sites/default/files/behaviors_0.png)
9. Play your simulation