mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
removed armIK.cpp and armIK.h, they are for the next changes
This commit is contained in:
parent
7a1c1252ff
commit
5054b54626
2 changed files with 0 additions and 74 deletions
|
@ -1,40 +0,0 @@
|
||||||
//
|
|
||||||
// AnimArmIK.cpp
|
|
||||||
//
|
|
||||||
// Created by Angus Antley on 1/9/19.
|
|
||||||
// Copyright (c) 2019 High Fidelity, Inc. All rights reserved.
|
|
||||||
//
|
|
||||||
// Distributed under the Apache License, Version 2.0.
|
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
||||||
//
|
|
||||||
|
|
||||||
#include "AnimArmIK.h"
|
|
||||||
|
|
||||||
#include <DebugDraw.h>
|
|
||||||
|
|
||||||
#include "AnimationLogging.h"
|
|
||||||
#include "AnimUtil.h"
|
|
||||||
|
|
||||||
AnimArmIK::AnimArmIK(const QString& id, float alpha, bool enabled, float interpDuration,
|
|
||||||
const QString& baseJointName, const QString& midJointName,
|
|
||||||
const QString& tipJointName, const glm::vec3& midHingeAxis,
|
|
||||||
const QString& alphaVar, const QString& enabledVar,
|
|
||||||
const QString& endEffectorRotationVarVar, const QString& endEffectorPositionVarVar) :
|
|
||||||
AnimTwoBoneIK(id, alpha, enabled, interpDuration, baseJointName, midJointName, tipJointName, midHingeAxis, alphaVar, enabledVar, endEffectorRotationVarVar, endEffectorPositionVarVar) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
AnimArmIK::~AnimArmIK() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
const AnimPoseVec& AnimArmIK::evaluate(const AnimVariantMap& animVars, const AnimContext& context, float dt, AnimVariantMap& triggersOut) {
|
|
||||||
qCDebug(animation) << "evaluating the arm IK";
|
|
||||||
|
|
||||||
assert(_children.size() == 1);
|
|
||||||
if (_children.size() != 1) {
|
|
||||||
return _poses;
|
|
||||||
} else {
|
|
||||||
return _poses;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
//
|
|
||||||
// AnimArmIK.h
|
|
||||||
//
|
|
||||||
// Created by Angus Antley on 1/9/19.
|
|
||||||
// Copyright (c) 2019 High Fidelity, Inc. All rights reserved.
|
|
||||||
//
|
|
||||||
// Distributed under the Apache License, Version 2.0.
|
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
||||||
//
|
|
||||||
|
|
||||||
#ifndef hifi_AnimArmIK_h
|
|
||||||
#define hifi_AnimArmIK_h
|
|
||||||
|
|
||||||
//#include "AnimNode.h"
|
|
||||||
#include "AnimTwoBoneIK.h"
|
|
||||||
//#include "AnimChain.h"
|
|
||||||
|
|
||||||
// Simple two bone IK chain
|
|
||||||
class AnimArmIK : public AnimTwoBoneIK {
|
|
||||||
public:
|
|
||||||
AnimArmIK(const QString& id, float alpha, bool enabled, float interpDuration,
|
|
||||||
const QString& baseJointName, const QString& midJointName,
|
|
||||||
const QString& tipJointName, const glm::vec3& midHingeAxis,
|
|
||||||
const QString& alphaVar, const QString& enabledVar,
|
|
||||||
const QString& endEffectorRotationVarVar, const QString& endEffectorPositionVarVar);
|
|
||||||
virtual ~AnimArmIK();
|
|
||||||
virtual const AnimPoseVec& evaluate(const AnimVariantMap& animVars, const AnimContext& context, float dt, AnimVariantMap& triggersOut) override;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // hifi_AnimArmIK_h
|
|
||||||
|
|
Loading…
Reference in a new issue