## 攝像機
```
{
/*...*/
'camera': {
'polar_angle': {
'default': Math.PI/4,
'max': Math.PI/2.01,
'min': Math.PI/18,
'in_use': true,
},
'azimuthal_angle': {
'default': -Math.PI/180*60,
'max': Infinity,
'min': -Infinity,
'in_use': true,
},
'distance': {
'default': 1400,
'max': 9999,
'min': 10,
'in_use': true,
},
'look_at': {
'type': 'center', // center,position
'position': {
'x': 0, 'y': 0, 'z': 0,
},
'offset': {
'x': 0, 'y': 0, 'z': 0,
},
},
'auto_rotate': {
'in_use': true,
'speed': 0.07,
},
},
/*...*/
}
```
| 參數 | 說明 | 格式 | 范圍 |
| --- | --- | --- | --- | --- |
| polar_angle| 攝像機-聚焦點的連線與水平面的夾角(極角) | Object | |
| polar_angle.default | 默認弧度 | Number | 0 ~ Math.PI/2 |
| polar_angle.min | 最小弧度 | Number | 0 ~ Math.PI/2 |
| polar_angle.max | 最大弧度 | Number | 0 ~ Math.PI/2 |
| polar_angle.in_use | 是否可以自由控制極角 | Boolean | |
| azimuthal_angle| 攝像機-聚焦點的連線在水平面上的投影與X軸的夾角(方位角) | Object | |
| azimuthal_angle.default | 默認弧度 | Number | -Infinity ~ Infinity |
| azimuthal_angle.min | 最小弧度 | Number | -Infinity ~ Infinity |
| azimuthal_angle.max | 最大弧度 | Number | -Infinity ~ Infinity |
| azimuthal_angle.in_use | 是否可以自由控制方位角 | Boolean | |
| distance| 攝像機與聚焦點的距離 | Object | |
| distance.default | 默認距離 | Number | 0 ~ Infinity |
| distance.min | 最小距離 | Number | 0 ~ Infinity |
| distance.max | 最大距離 | Number | 0 ~ Infinity |
| distance.in_use | 是否可以自由控制距離 | Boolean | |
| look_at.type | 聚焦點類型,如果是 center 則為地面中心,如果是 position,則是下面的具體坐標值 | String | |
| look_at.position | 聚焦點的具體坐標值 | Object | |
| look_at.offset | 聚焦點的偏移量 | Object | |
| auto_rotate.in_use | 攝像機是否自動旋轉 | Boolean | |
| auto_rotate.speed | 攝像自動旋轉的弧度速率 | Number | -Math.PI ~ Math.PI |
- 序言
- 簡介
- 為何選擇
- 框架特點
- 運行性能
- 開始使用
- 目錄結構
- 運行環境
- 如何使用
- 可視化設計
- 簡介
- 如何使用
- 基礎
- 目錄結構
- 配置數據
- 結構
- global
- style_lib
- default
- emphasis
- status
- environ
- camera
- ground
- light
- ambient_light
- directional_light
- point_light
- designer_data
- 物體數據
- 結構
- 通用參數
- 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
- update
- query
- 攝像機類
- get
- set
- reset
- auto_rotate
- 雜項
- 聯系