模型添加更新了
This commit is contained in:
@@ -13,6 +13,7 @@ function handleLoadedDevice(model) {
|
||||
const wp = this.targetPoint.getWorldPosition(new this.THREE.Vector3());
|
||||
model.position.copy(wp);
|
||||
this.targetPoint.visible = false;
|
||||
model.scale = 0.1
|
||||
|
||||
this.scene.add(model);
|
||||
if (model.name === "camera") {
|
||||
@@ -20,6 +21,7 @@ function handleLoadedDevice(model) {
|
||||
model.translateZ(4);
|
||||
model.translateY(-0.5);
|
||||
}
|
||||
|
||||
// 添加的信息请求或初始化的信息
|
||||
this.targetPoint.info = {
|
||||
name: "摄像头",
|
||||
|
||||
Reference in New Issue
Block a user