Kinect Ragdoll - Some 2D physics flying fun (with source)
- Posted: Sep 14, 2012 at 6:00 AM
- 4,908 Views
Today's project is one I found searching GitHub for Kinect project. I see I'm going to have to come back here and hunt for more! This project combines the Kinect, Kinect for Windows SDK and some Farseer Physics to provide a pretty cool thing to play with...
This program lets you control a 2D ragdoll using a Kinect. Currently runs on Windows only.
How to play
1. Download and install the Kinect for Windows SDK (http://www.microsoft.com/en-us/kinectforwindows/)
2. Plug in a Kinect
3. Launch the game
4. Put your arms out and behind you to fire thrusters out of your hands and feet
5. Use various tools to draw physics objects and set up objectives / hazards.
Adding Physics Props
Use the toolbar on the side.
- Pointer tool: drag on background to select objects, drag on object to move it.
- Rectangle tool: drag to create a rectangle
- Nail tool: click to add a nail that pivots an object on the background
- Joint tool: click to add a joint between two objects.
- Polygon tool: you'll figure it out.
- Turrets: you can place auto-tracking turrets that shoot bullets / lasers / rockets.
Note: nails and joints can be turned into motors via the property editor.
Select the pointer tool and drag a rectangle to make a selection. The selected objects will turn yellow and appear listed in the selection editor. (press 'P')
You can modify your selection with the checkboxes in the selection editor, and perform various operations on the selected objects.
- You will go limp for a while if you take a hard hit to the head.
- If you've fallen and you can't get up, try putting your hands above your head and then swinging them down to your sides.
- The thrusters get stronger the more you put your hands back. The game compares the position of your hands to your 'torso'.
- The game gently tries to rotate the ragdoll so that it's leaning at the same angle you are.
- One player at a time for now.
Project Information URL: https://github.com/tarehart/KinectRagdoll
Project Download URL: https://github.com/tarehart/KinectRagdoll
Project Source URL: https://github.com/tarehart/KinectRagdoll
Note: I had to replace the Microsoft.Kinect reference from its current 1.0 binding in the project to v1.5. Once I did that, the app compiled and ran for me just fine...