mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:03:58 +02:00
fix bug in JointState::translationIsDefault
This commit is contained in:
parent
50dd8eba45
commit
04eed64c7c
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ bool JointState::rotationIsDefault(const glm::quat& rotation, float tolerance) c
|
|||
}
|
||||
|
||||
bool JointState::translationIsDefault(const glm::vec3& translation, float tolerance) const {
|
||||
return glm::distance(_defaultTranslation, translation * _unitsScale) < tolerance;
|
||||
return glm::distance(_defaultTranslation * _unitsScale, translation * _unitsScale) < tolerance;
|
||||
}
|
||||
|
||||
glm::quat JointState::getDefaultRotationInParentFrame() const {
|
||||
|
|
Loading…
Reference in a new issue