Skip to content

Commit

Permalink
Merge pull request #866 from AnotherFoxGuy/fix-avatarcolision
Browse files Browse the repository at this point in the history
🐛 Fixed avatar bounding box being inverted
  • Loading branch information
ksuprynowicz committed Mar 13, 2024
2 parents 634dc64 + e276968 commit 03dbbb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/physics/src/CharacterController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 03dbbb9

Please sign in to comment.