explore rotation and bounds
This commit is contained in:
parent
d42db44009
commit
8cd2a22a54
3 changed files with 22 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue