remove unused JointState::setRotation() method

This commit is contained in:
Andrew Meadows 2014-08-19 17:33:06 -07:00
parent 1a8a2d9156
commit 8c4f0968d8
2 changed files with 1 additions and 8 deletions

View file

@ -173,10 +173,6 @@ void JointState::clearTransformTranslation() {
_visibleTransform[3][2] = 0.0f;
}
void JointState::setRotation(const glm::quat& rotation, bool constrain, float priority) {
applyRotationDelta(rotation * glm::inverse(getRotation()), true, priority);
}
void JointState::applyRotationDelta(const glm::quat& delta, bool constrain, float priority) {
// NOTE: delta is in model-frame
assert(_fbxJoint != NULL);
@ -267,4 +263,4 @@ void JointState::slaveVisibleTransform() {
_visibleTransform = _transform;
_visibleRotation = getRotation();
_visibleRotationInConstrainedFrame = _rotationInConstrainedFrame;
}
}

View file

@ -60,9 +60,6 @@ public:
int getParentIndex() const { return _fbxJoint->parentIndex; }
/// \param rotation rotation of joint in model-frame
void setRotation(const glm::quat& rotation, bool constrain, float priority);
/// \param delta is in the model-frame
void applyRotationDelta(const glm::quat& delta, bool constrain = true, float priority = 1.0f);