Merge pull request #866 from AnotherFoxGuy/fix-avatarcolision

🐛 Fixed avatar bounding box being inverted
This commit is contained in:
ksuprynowicz 2024-03-14 00:00:03 +01:00 committed by GitHub
commit 03dbbb94c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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