多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 往返穿梭 ``` 'animate': [ { 'in_use': true, 'type': 'shuttle', 'param': { 'destination': { 'position': { 'x': 100, 'y': 0, 'z': 50, }, }, 'progress': 0, 'step': 0.01, }, }, ], ``` * 物体会在初始位置和目标位置之间进行往返运动,并有缓动效果 | 参数 | 说明 | 格式 | 备注 | | --- | --- | --- | --- | --- | | animate[i].in_use | 是否启用本动画 | Boolean | | | animate[i].type | 动画类型 | String | | | animate[i].param.destination.position | 动画参数:相对于初始位置的目标位置 | Object | xyz坐标 | | animate[i].param.progress | 动画参数:初始进度 | Number | 0 ~ 1 | | animate[i].param.step | 动画参数:每帧步进比率 | Number | 如果为0.02,则代表50帧(1/step)完成一次动画 |