Steps to be followed for joint tracking
Before playing around or accessing the joint information such as Position
, JointType
, and TrackingState
, it's important to make sure that you have a tracked joint to work with. So, before proceeding to work with joints, the tracking first checks whether the skeleton is being tracked or not using SkeletonTrackingState
. Once the skeleton is being tracked by the sensors, pass that skeleton data to the next step for processing. And in the next step check for the joint tracking status. As discussed in the previous section, joint tracking also has three different states that allow you to determine what action to take. To make sure you are on the right path, you have to keep in mind the following steps while developing an application using skeleton and joints:
Note
You can't add or remove any item from the joint collection. because JointsCollection
in Skeleton
does not implement an Add()
or Remove()
method . This is because it must always contain exactly 20...