new storage n matrix model

This commit is contained in:
Stewart Allen 2024-08-03 10:26:25 -04:00
commit 65f6c7deec
5 changed files with 62 additions and 7 deletions

View file

@ -128,6 +128,7 @@ mesh.object = class MeshObject {
}
rotate(x = 0, y = 0, z = 0) {
console.log('rotate', ...arguments);
if (x) this.object.rotateOnWorldAxis(new Vector3(1,0,0), x);
if (y) this.object.rotateOnWorldAxis(new Vector3(0,1,0), y);
if (z) this.object.rotateOnWorldAxis(new Vector3(0,0,1), z);