c# - Creating a skeleton from a text file -
i want create skeleton text file containing joint/x/y/z have issues creating joints
string[] jointpoints = line.split('/'); float x = (float)convert.todouble(jointpoints[1]); float y = (float)convert.todouble(jointpoints[2]); float z = (float)convert.todouble(jointpoints[3]); joint j = new joint(); var pos = j.position; switch (jointpoints[0].toupper()) { case "head": //j.jointtype = jointtype.head; <--- can't this, pos.x = x;pos.y = y;pos.z = z; playskeleton.joints[jointtype.head] = j; break;
Comments
Post a Comment