explore rotation and bounds

This commit is contained in:
Stewart Allen 2022-01-01 10:44:06 -05:00
commit 8cd2a22a54
3 changed files with 22 additions and 2 deletions

View file

@ -127,7 +127,12 @@ 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));
// 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.qrotate(q);
group.floor();
} else {
api.selection.toggle(model.group);
}