fix old bug: rotation of CapsuleShape not updated

when setting endpoints directly
This commit is contained in:
Andrew Meadows 2014-07-30 11:30:08 -07:00
parent 53db6dec13
commit c0689f3784

View file

@ -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();
}