Last active
October 29, 2015 03:34
-
-
Save ThomasLengeling/86ce61949d391808c08b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int index2 = i * (JointType_Count+1) * 9; | |
int indexJoint = index2 + (JointType_Count+1) * 9 - 1; | |
if(rawData[indexJoint] == 1.0){ | |
tracked = true; | |
colorIndex = i; | |
int j = 0; | |
int index1 = j * 9; | |
int type = (int)rawData[index2 + 0 + 8]; | |
kJoints[j].pos.x = rawData[index2 + index1 + 0]; | |
kJoints[j].pos.y = rawData[index2 + index1 + 1]; | |
kJoints[j].pos.z = rawData[index2 + index1 + 2]; | |
kJoints[j].orientation.w = rawData[index2 + index1 + 3]; | |
kJoints[j].orientation.x = rawData[index2 + index1 + 4]; | |
kJoints[j].orientation.y = rawData[index2 + index1 + 5]; | |
kJoints[j].orientation.z = rawData[index2 + index1 + 6]; | |
}else{ | |
tracked = false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
int index2 = i * (1) * 9;
if(rawData[index2] == 1.0){
tracked = true;
}else{
tracked = false;
}
//this way?