mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 04:53:25 +02:00
fix old bug: rotation of CapsuleShape not updated
when setting endpoints directly
This commit is contained in:
parent
53db6dec13
commit
c0689f3784
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ void CapsuleShape::setEndPoints(const glm::vec3& startPoint, const glm::vec3& en
|
||||||
if (height > EPSILON) {
|
if (height > EPSILON) {
|
||||||
_halfHeight = 0.5f * height;
|
_halfHeight = 0.5f * height;
|
||||||
axis /= height;
|
axis /= height;
|
||||||
computeNewRotation(axis);
|
_rotation = computeNewRotation(axis);
|
||||||
}
|
}
|
||||||
updateBoundingRadius();
|
updateBoundingRadius();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue