Miarmy Crowd Simulation Documentation (English)

Read Particle Custom Attribute

General Introduction

We can define a per particle attribute then allow the agents read it and apply it into simulation.

This allow us achieve more custom crowd simulation result by expression from particles.


Instructions

Add an attribute Crowd into particle

add attribute


Add expression to this attribute and drive pp value:

per data in different particle


In a new decision node, switch to the expression mode


Setup the decision node and transfer the pp attribute "Crowd" value into each agent simulation attribute "test"

Then, when simulate the scene, the values of "test" in each different agents are different and the value is the same as pp attribute of the data


We can continue use this simulation variable to do anything we need Expression Control




Basefount Technology