🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 沿路径运动 ``` 'animate': [ { 'in_use': true, 'type': 'route', 'param': { 'pathline': { 'data': [ [0, 0, 0], [200, 0, 0], [200, 200, 0], [0, 200, 0], ], 'curved': true, 'closed': true, 'auto_lookto': true, }, 'progress': 0, 'step': 0.001, }, }, ], ``` | 参数 | 说明 | 格式 | 备注 | | --- | --- | --- | --- | --- | | animate[i].in_use | 是否启用本动画 | Boolean | | | animate[i].type | 动画类型 | String | | | animate[i].param.pathline.data | 动画参数:路径点 | Array | xyz坐标 | | animate[i].param.pathline.curved | 动画参数:路径点间是否呈曲线形 | Boolean | | | animate[i].param.pathline.closed | 动画参数:路径点是否呈闭合 | Boolean | | | animate[i].param.pathline.auto_lookto | 动画参数:移动时,是否沿路径切线自动调整方向 | Boolean | | | animate[i].param.progress | 动画参数:初始进度 | Number | 0 ~ 1 | | animate[i].param.step | 动画参数:每帧步进比率 | Number | 如果为0.02,则代表50帧(1/step)完成一次动画 |