static void reportJoint(RigPointer rig, int index) { // Handy for debugging std::cout << "\n"; std::cout << index << " " << rig->getAnimSkeleton()->getJointName(index).toUtf8().data() << "\n"; glm::vec3 pos; rig->getJointPosition(index, pos); glm::quat rot; rig->getJointRotation(index, rot); std::cout << " pos:" << pos << "\n"; std::cout << " rot:" << safeEulerAngles(rot) << "\n"; std::cout << "\n"; }
static void reportAll(RigPointer rig) { for (int i = 0; i < rig->getJointStateCount(); i++) { JointState joint = rig->getJointState(i); reportJoint(i, joint); } }
static void reportByName(RigPointer rig, const QString& name) { int jointIndex = rig->indexOfJoint(name); reportJoint(jointIndex, rig->getJointState(jointIndex)); }
static void reportAll(RigPointer rig) { for (int i = 0; i < rig->getJointStateCount(); i++) { reportJoint(rig, i); } }
static void reportByName(RigPointer rig, const QString& name) { int jointIndex = rig->indexOfJoint(name); reportJoint(rig, jointIndex); }