## 沿路徑運動
```
'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)完成一次動畫 |
- 序言
- 基礎
- 如何使用
- 目錄結構
- 配置數據
- 結構
- global
- style_lib
- default
- emphasis
- status
- environ
- camera
- ground
- light
- ambient_light
- directional_light
- point_light
- 物體數據
- 結構
- 通用參數
- id
- name
- style
- advgeom
- visible
- status
- param
- property
- scale
- align
- position
- rotation
- label
- infobox
- icon
- linkline
- float
- intersect
- animate
- rotate
- shuttle
- pipeline
- flow
- route
- 多個動畫
- 基礎物體
- 平面 Plane
- 圓平面 Circle
- 環平面 Ring
- 立方體 Cube
- 球體 Sphere
- 圓柱體 Cylinder
- 圓環體 Torus
- 管道 Tube
- 曲面 Spline
- 墻 Wall
- 拔高體 Raise
- 正四面體 Tetrahedron
- 正八面體 Octahedron
- 正二十面體 Icosahedron
- 接口
- 先讀我
- 物體類
- visible
- position
- scale
- rotation
- icon
- label
- infobox
- intersect
- param
- status
- animate
- list
- remove
- add
- 攝像機類
- get
- set
- reset
- auto_rotate
- 聯系