Hi guys I’ve got the joint tracking working now and I was just wondering what the best way to set it to mouse position would be
ofVec3f l, r;
for(int i = 0; i < openNIDevice.getNumTrackedUsers(); i++){
ofxOpenNIUser & user = openNIDevice.getTrackedUser(i);
ofxOpenNIJoint right = user.getJoint(JOINT_RIGHT_HAND);
ofxOpenNIJoint rightelbow = user.getJoint(JOINT_RIGHT_ELBOW);
ofxOpenNIJoint rightshoulder = user.getJoint(JOINT_RIGHT_SHOULDER);
if (right.isFound()) {
r.set(right.getProjectivePosition());
r.set(right.getWorldPosition());
}
if (rightelbow.isFound()) {
r.set(rightelbow.getProjectivePosition());
r.set(rightelbow.getWorldPosition());
}
if (rightshoulder.isFound()) {
r.set(rightshoulder.getProjectivePosition());
r.set(rightshoulder.getWorldPosition());
}