unfunc cam client. fix boxes, tabs, fdm support lerp
This commit is contained in:
parent
5c0fbbcba6
commit
eff943f0d6
5 changed files with 463 additions and 440 deletions
|
|
@ -1,6 +1,14 @@
|
|||
const { BoxGeometry, Matrix4, MeshPhongMaterial, Quaternion, Vector3 } = THREE;
|
||||
import { space } from '../moto/space.js';
|
||||
|
||||
const { BoxGeometry, Matrix4, MeshPhongMaterial, Quaternion, Vector3, Mesh } = THREE;
|
||||
const boxes = [];
|
||||
|
||||
let lastBox;
|
||||
|
||||
export function getlastbox() {
|
||||
return lastBox;
|
||||
}
|
||||
|
||||
export function delbox(name) {
|
||||
const old = boxes[name];
|
||||
if (old) {
|
||||
|
|
@ -26,7 +34,7 @@ export function addbox(point, color, name, dim = {x:1,y:1,z:1,rz:0}, opt = {}) {
|
|||
|
||||
lastBox = { point, dim };
|
||||
|
||||
const group = opt.group || space.scene
|
||||
const group = opt.group || space.scene;
|
||||
group.add(box);
|
||||
box.groupTo = group;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue