Camera

Camera 表示孪生世界中的摄像机。

属性

.near: Number

摄像机视锥体近端面

.far: Number

摄像机视锥体远端面

.position: THREE.Vector3

摄像机的位置

.target: THREE.Vector3

摄像机的位置

.enablePolarAngle: Boolean

摄像机是 3d/2d

.type: String //orthographic,perspective

摄像机是正交相机还是透视相机

方法

.flyTo(twin: Twin, duration?: Number, complete?: Function): Void

将摄像机跳转到挛生体处。

.animateCamera(oldP: THREE.Vector3, oldT: THREE.Vector3, newP: THREE.Vector3, newT: THREE.Vector3, time: Number, easingFunction: String, callBack?: Function): Void

将摄像机跳转到挛生体处。