mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 05:50:19 +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) {
|
||||
_halfHeight = 0.5f * height;
|
||||
axis /= height;
|
||||
computeNewRotation(axis);
|
||||
_rotation = computeNewRotation(axis);
|
||||
}
|
||||
updateBoundingRadius();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue