提交 fb9d11bf authored 作者: 詹银鑫's avatar 詹银鑫

路线流动方向修改正常

上级 7c2c0b41
...@@ -1601,9 +1601,9 @@ export class World extends Mini3d { ...@@ -1601,9 +1601,9 @@ export class World extends Mini3d {
this.scene.add(mesh); this.scene.add(mesh);
// 保持原有动画逻辑 // 保持原有动画逻辑
this.time.on("tick", () => { this.time.on("tick", () => {
material.uniforms.dashOffset.value += 0.001; material.uniforms.dashOffset.value -= 0.001;
if (material.uniforms.dashOffset.value > 1.0) { if (material.uniforms.dashOffset.value < 1.0) {
material.uniforms.dashOffset.value -= 1.0; material.uniforms.dashOffset.value += 1.0;
} }
}); });
return mesh; return mesh;
...@@ -2015,7 +2015,7 @@ export class World extends Mini3d { ...@@ -2015,7 +2015,7 @@ export class World extends Mini3d {
// z 轴为地表高度加上无人机高度 // z 轴为地表高度加上无人机高度
const z = this.depth + height + 0.5; const z = this.depth + height + 0.5;
// 创建 THREE.Vector3 位置 // 创建 THREE.Vector3 位置
const position = new THREE.Vector3(x, z, -y); const position = new THREE.Vector3(x, z, y);
// 调用已有的加载方法 // 调用已有的加载方法
this.loadDroneModel(url, position, scale); this.loadDroneModel(url, position, scale);
} }
...@@ -2071,7 +2071,7 @@ export class World extends Mini3d { ...@@ -2071,7 +2071,7 @@ export class World extends Mini3d {
], ],
20 20
); );
// this.moveDroneAlongPath(drone, [110.9801, 39.8002], 15); // this.moveDroneAlongPath(drone, [111.0806, 39.7005], 5);
console.log("无人机模型加载完成", drone); console.log("无人机模型加载完成", drone);
}, },
(xhr) => { (xhr) => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论