private static SkeletonJointPosition Joint(SkeletonCapability skeletonCapability, DepthGenerator depthGenerator, uint user, SkeletonJoint joint)
{
var pos = new SkeletonJointPosition();
skeletonCapability.GetSkeletonJointPosition(user, joint, ref pos);
if (pos.position.Z == 0)
{
pos.fConfidence = 0;
}
else
{
pos.position = depthGenerator.ConvertRealWorldToProjective(pos.position);
}
return pos;
}