🐛 Fixed avatar bounding box being inverted

This commit is contained in:
Edgar 2024-03-12 22:12:03 +01:00
parent 634dc64f8f
commit e27696802b
No known key found for this signature in database
GPG key ID: 9AA5DDFFCBDCE46A

View file

@ -587,7 +587,7 @@ void CharacterController::setLocalBoundingBox(const glm::vec3& minCorner, const
}
// it's ok to change offset immediately -- there are no thread safety issues here
_shapeLocalOffset = minCorner + 0.5f * scale;
_shapeLocalOffset = glm::vec3((minCorner + 0.5f * scale).x, (minCorner + 0.5f * scale).y, -(minCorner + 0.5f * scale).z);
if (_rigidBody) {
// update CCD with new _radius