Skip to content

Instantly share code, notes, and snippets.

@ThomasLengeling
Last active October 29, 2015 03:34
Show Gist options
  • Save ThomasLengeling/86ce61949d391808c08b to your computer and use it in GitHub Desktop.
Save ThomasLengeling/86ce61949d391808c08b to your computer and use it in GitHub Desktop.
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;
}
@palomagr
Copy link

int index2 = i * (1) * 9;
if(rawData[index2] == 1.0){
tracked = true;
}else{
tracked = false;
}

//this way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment