This is simple example to place Thinking Particles on MoGraph object.
Sample 1 (only place TP on MoGraph)
Sample 2 (Added cut off function with user data)
Sample 3 (Added fall off and random function with user data)
It is not so difficult to make sample 1 and 2. Some MoGraph nodes are new, but not so different from usual XPresso nodes.
About sample 3, I added a data channel “ID” to the Thinking Particles. The “data channel” is similar idea to “user data”. This is because “re-arrangement” is happen after the particles are cut off from arm, without this.
For example, normally “particle” port of PPass node put integer number regularly like “0,1,2,3,4,5,6,7,8,9…”, and each particle fits to arm with corresponding number.
Then, assume that a particle number “2” is moved to different group, and cut off from the arm. Here, total number of particles decreases 1, and particle number “3” is now put as particle number “2”.
As a result, it can be seen like the particle number 2 jumps from arm “3” to arm “2”, This is problem.
To solve this problem, I uses “ID” port substitute for usual “particle” port, to get position of arms. The ID port stores number which the particle had when it was generated. So they should be same, until total number of particles is decreased.