Replacing Mouse Action with Motion Tracking Information

I am still very new to oF and am currently trying to work on a program where human motion triggers a particle system. I have a simple particle system working right now in which the mouse triggers the particle system and attracts it. I want to be able to replace what the mouse is doing with motion tracking information so that the user’s motion is generating the particles. Also I would be interested in learning how to use OSC in the program to receive the motion tracking information from Rockwell Groups TSPS if anyone can give me information on how to approach this? Like I said I am very new to all of this and anything would be useful.

You can use check this thread here it contains an example using optical flow algorithm

For OSC check the OscReceiverExample in your app/examples folder