mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Merge pull request #866 from AnotherFoxGuy/fix-avatarcolision
🐛 Fixed avatar bounding box being inverted
This commit is contained in:
commit
03dbbb94c8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue