Showing the changes to libraries/render-utils/src/Model.cpp (1 of 6 files). Show all
Unified · Split
| @@ -1259,19 +1259,6 @@ void Model::updateClusterMatrices() { · 1258 unmodified lines | |||
| 1259 | } | 1259 | } |
| 1260 | } | 1260 | } |
| 1261 | 1261 | ||
| 1262 | void Model::inverseKinematics(int endIndex, glm::vec3 targetPosition, const glm::quat& targetRotation, float priority) { | ||
| 1263 | const FBXGeometry& geometry = getFBXGeometry(); | ||
| 1264 | const QVector<int>& freeLineage = geometry.joints.at(endIndex).freeLineage; | ||
| 1265 | glm::mat4 parentTransform = glm::scale(_scale) * glm::translate(_offset); | ||
| 1266 | _rig.inverseKinematics(endIndex, targetPosition, targetRotation, priority, freeLineage, parentTransform); | ||
| 1267 | } | ||
| 1268 | |||
| 1269 | bool Model::restoreJointPosition(int jointIndex, float fraction, float priority) { | ||
| 1270 | const FBXGeometry& geometry = getFBXGeometry(); | ||
| 1271 | const QVector<int>& freeLineage = geometry.joints.at(jointIndex).freeLineage; | ||
| 1272 | return _rig.restoreJointPosition(jointIndex, fraction, priority, freeLineage); | ||
| 1273 | } | ||
| 1274 | |||
| 1275 | float Model::getLimbLength(int jointIndex) const { | 1262 | float Model::getLimbLength(int jointIndex) const { |
| 1276 | const FBXGeometry& geometry = getFBXGeometry(); | 1263 | const FBXGeometry& geometry = getFBXGeometry(); |
| 1277 | const QVector<int>& freeLineage = geometry.joints.at(jointIndex).freeLineage; | 1264 | const QVector<int>& freeLineage = geometry.joints.at(jointIndex).freeLineage; |