Kinect developing
Developing for the Kinect is easier than you'd think.
Bone Points
The kinect provides us with a number of vectors representing specific bones. These are encoded into the usercommand (in the same way that mouse buttons and view angles are) and are available on the player object serverside, and in multiplayer - for prediction purposes - clientside.
To access these points you can call
Note that these positions aren't in world coordinates - so you will have to multiply them to get them to a usable size.
To access specific bones you can use these enums:
motionsensor
The motionsensor offers direct access to the sensor clientside, and a few utility functions sharedside.
motionsensor.DebugBones
This table contains subtables of bone ids allowing you to iterate it and draw bones.
motionsensor.IsAvailable()
Clientside - will return true if we have detected that there's a kinect connected to the PC.
motionsensor.IsActive()
Clientside - will return true if a kinect is connected - and active (ie - Start has been called).
motionsensor.Start()
Clientside - this starts access to the kinect sensor. Note that this usually freezes the game for a couple of seconds.