normalize util.bound to Box3 extensions

This commit is contained in:
Stewart Allen 2022-01-10 20:08:49 -05:00
commit b8877f1225
4 changed files with 7 additions and 8 deletions

View file

@ -103,6 +103,7 @@ mesh.model = class MeshModel extends mesh.object {
meh.castShadow = true;
meh.renderOrder = 1;
// center vertices then restore mesh object position
// still this doesn't work. scale broken for bounding boxes
// let mid = meh.getBoundingBox().mid;
// geo.moveMesh(-mid.x, -mid.y, -mid.x);
// this.move(mid.x, mid.y, mid.x);