Week Two - Dancing with the Kinect

Week Two – Dancing with the Kinect

This week we tried out joint tracking with the Kinect. For my sketch, I wanted to create hotkeys to toggle different joints on and off.

First, I converted all variables concerning the tracked joint to ArrayLists. Then, I modified the method returning the chosen joint to return an array of joints. Finally, I created a keyPressed function that toggled on and off the selected joint. For this sketch, I tied the right shoulder to the ‘s’ key, the left hand to the ‘h’ key, and the left foot to the ‘f’ key.

Here’s my code.