Merge branch 'raysan5:master' into master

This commit is contained in:
Jett 2023-10-30 18:28:26 -04:00 committed by GitHub
commit 5aacb708e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1171,6 +1171,12 @@ BoundingBox GetModelBoundingBox(Model model)
}
}
// Apply model.transform to bounding box
// WARNING: Current BoundingBox structure design does not support rotation transformations,
// in those cases is up to the user to calculate the proper box bounds (8 vertices transformed)
bounds.min = Vector3Transform(bounds.min, model.transform);
bounds.max = Vector3Transform(bounds.max, model.transform);
return bounds;
}