mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 12:54:30 +02:00
Removed cruft/debug code & comments
This commit is contained in:
parent
7af93f9fea
commit
712fcbe27a
2 changed files with 0 additions and 27 deletions
|
@ -1707,30 +1707,6 @@ void MyAvatar::postUpdate(float deltaTime) {
|
||||||
initAnimGraph();
|
initAnimGraph();
|
||||||
}
|
}
|
||||||
|
|
||||||
// AJT: REMOVE.
|
|
||||||
/*
|
|
||||||
{
|
|
||||||
auto ikNode = _rig->getAnimInverseKinematicsNode();
|
|
||||||
if (ikNode) {
|
|
||||||
// the rig is in the skeletonModel frame
|
|
||||||
AnimPose xform(glm::vec3(1), _skeletonModel->getRotation(), _skeletonModel->getTranslation());
|
|
||||||
AnimPoseVec limitCenterPoses = ikNode->getLimitCenterPoses();
|
|
||||||
|
|
||||||
// HACK: convert joints from geom to avatar space
|
|
||||||
int hipsIndex = _rig->indexOfJoint("Hips");
|
|
||||||
for (size_t i = 0; i < limitCenterPoses.size(); i++) {
|
|
||||||
if (i == hipsIndex) {
|
|
||||||
limitCenterPoses[i].trans() = glm::vec3(); // zero the hips
|
|
||||||
}
|
|
||||||
// convert from cm to m
|
|
||||||
limitCenterPoses[i].trans() = 0.01f * limitCenterPoses[i].trans();
|
|
||||||
}
|
|
||||||
_rig->getAnimSkeleton()->convertRelativePosesToAbsolute(limitCenterPoses);
|
|
||||||
AnimDebugDraw::getInstance().addAbsolutePoses("myAvatarLimitCenterPoses", _rig->getAnimSkeleton(), limitCenterPoses, xform, glm::vec4(1));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (_enableDebugDrawDefaultPose || _enableDebugDrawAnimPose) {
|
if (_enableDebugDrawDefaultPose || _enableDebugDrawAnimPose) {
|
||||||
|
|
||||||
auto animSkeleton = _rig->getAnimSkeleton();
|
auto animSkeleton = _rig->getAnimSkeleton();
|
||||||
|
|
|
@ -43,9 +43,6 @@ public:
|
||||||
|
|
||||||
float getMaxErrorOnLastSolve() { return _maxErrorOnLastSolve; }
|
float getMaxErrorOnLastSolve() { return _maxErrorOnLastSolve; }
|
||||||
|
|
||||||
// AJT: TODO REMOVE? for debugging.
|
|
||||||
const AnimPoseVec& getLimitCenterPoses() const { return _limitCenterPoses; }
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void computeTargets(const AnimVariantMap& animVars, std::vector<IKTarget>& targets, const AnimPoseVec& underPoses);
|
void computeTargets(const AnimVariantMap& animVars, std::vector<IKTarget>& targets, const AnimPoseVec& underPoses);
|
||||||
void solveWithCyclicCoordinateDescent(const std::vector<IKTarget>& targets);
|
void solveWithCyclicCoordinateDescent(const std::vector<IKTarget>& targets);
|
||||||
|
|
Loading…
Reference in a new issue