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(); let q = new THREE.Quaternion();
// find intersecting point, look "up" on Z and rotate to face that // find intersecting point, look "up" on Z and rotate to face that
q.setFromUnitVectors(int.face.normal, new THREE.Vector3(0,0,-1)); q.setFromUnitVectors(int.face.normal, new THREE.Vector3(0,0,-1));
group.qrotate(q); group.qrotation(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.floor(); group.floor();
} else { } else {
api.selection.toggle(model.group); api.selection.toggle(model.group);

View file

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

View file

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