Hello @hernancrocce
You can see how this is implemented in the Nuitrack plugin (works with kinect and other sensors)