在这里插入图片描述

开场添加星空,地球在星空中入场然后切换到楼宇 可点击实现楼层拆分 报警精灵闪烁
分享重要代码地球运动过程:
var camearAnimation = new TWEEN.Tween(_this.camera.position)
.to(new THREE.Vector3(150, 50, 200), 5000).easing(TWEEN.Easing.Quadratic.InOut)
.onUpdate((object) => {
_this.controls.update();
})
.onComplete(function () {
})
.start();
var earthAnimation = new TWEEN.Tween(_this.earthGrp.position)
.to(new THREE.Vector3(0, 0, 0), 4000).easing(TWEEN.Easing.Quadratic.InOut)
.onUpdate((object) => {})
.onComplete(function () {})
.start();

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐