remove inaccurate comments, defunct code

This commit is contained in:
Stewart Allen 2022-01-01 15:19:39 -05:00
commit e9d867de1c
3 changed files with 2 additions and 11 deletions

View file

@ -154,11 +154,7 @@ broker.subscribe('space_init', data => {
let q = new THREE.Quaternion();
// find intersecting point, look "up" on Z and rotate to face that
q.setFromUnitVectors(int.face.normal, new THREE.Vector3(0,0,-1));
group.qrotate(q);
// let e = new THREE.Euler().setFromQuaternion(q);
// let n = int.face.normal;
// console.log({n,q,e});
// group.rotation(e.x, e.y, e.z);
group.qrotation(q);
group.floor();
} else {
api.selection.toggle(model.group);

View file

@ -249,9 +249,6 @@ let util = mesh.util = {
box.expandByObject(
o instanceof mesh.object ? o.object() : o
);
// box.union(new THREE.Box3().setFromObject(
// o instanceof mesh.object ? o.object() : o
// ));
}
} else if (object) {
box.setFromObject(

View file

@ -73,7 +73,6 @@ mesh.object = class MeshObject {
return this;
}
// use with caution. frames of reference interfere.
rotation() {
let rot = this.object().rotation;
if (arguments.length === 0) {
@ -85,8 +84,7 @@ mesh.object = class MeshObject {
return this;
}
// use with caution. frames of reference interfere.
qrotate(quaternion) {
qrotation(quaternion) {
this.object().setRotationFromQuaternion(quaternion);
this.updateBoundsBox();
moto.Space.update();