I have Skeleton skeletonthat comes from the event SkeletonFrameReady. And I have a function to draw skeletons on windows,
void DrawSkeleton(Skeleton s),
which takes the Skeleton as an input and draws a 2D image of the skeleton into my window.
Now I want to change, for example, the value of x and y of the right hand and draw it in the window, using the same function void DrawSkeleton(Skeleton s).
However, when I try to do something like:
skeleton.Joints[JointType.HandRight].Position.X = 3;
This does not allow me to do this:
It is not possible to change the return value of "Microsoft.Kinect.Joint.Position" because it is not a variable.
which, probably because it is Positionnot a variable, is a property.
Question:
How can I duplicate an object Skeletonand change values Position Jointon this object.
source