mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 07:37:20 +02:00
remove unused JointState::setRotation() method
This commit is contained in:
parent
1a8a2d9156
commit
8c4f0968d8
2 changed files with 1 additions and 8 deletions
|
@ -173,10 +173,6 @@ void JointState::clearTransformTranslation() {
|
||||||
_visibleTransform[3][2] = 0.0f;
|
_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) {
|
void JointState::applyRotationDelta(const glm::quat& delta, bool constrain, float priority) {
|
||||||
// NOTE: delta is in model-frame
|
// NOTE: delta is in model-frame
|
||||||
assert(_fbxJoint != NULL);
|
assert(_fbxJoint != NULL);
|
||||||
|
@ -267,4 +263,4 @@ void JointState::slaveVisibleTransform() {
|
||||||
_visibleTransform = _transform;
|
_visibleTransform = _transform;
|
||||||
_visibleRotation = getRotation();
|
_visibleRotation = getRotation();
|
||||||
_visibleRotationInConstrainedFrame = _rotationInConstrainedFrame;
|
_visibleRotationInConstrainedFrame = _rotationInConstrainedFrame;
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,9 +60,6 @@ public:
|
||||||
|
|
||||||
int getParentIndex() const { return _fbxJoint->parentIndex; }
|
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
|
/// \param delta is in the model-frame
|
||||||
void applyRotationDelta(const glm::quat& delta, bool constrain = true, float priority = 1.0f);
|
void applyRotationDelta(const glm::quat& delta, bool constrain = true, float priority = 1.0f);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue