Optional
azimuthOptional
boundaryFriction ratio of the boundary..Default is 0.0
.
Optional
colliderAn array of Meshes to collide with camera. Be aware colliderMeshes may decrease performance. The collision test uses 4 raycasters from the camera since the near plane has 4 corners.
Optional
dbl双击定位时把当前坐标用Marker调试输出,默认false
Optional
dbl开启双击定位到中心点,默认是
Optional
disable允许更新
Optional
dollytrue
to invert direction when dollying or zooming via drag Default is false
.
Optional
dollySpeed of mouse-wheel dollying. Default is 1.0
.
Optional
dollytrue
to enable Dolly-in to the mouse cursor coords. Default is false
.
Optional
dragProperties Default is false
.
Optional
draggingthe smoothTime while draggingDefault is 0.125
.
Optional
enable是否启用
Optional
event事件来源于输入模块
Optional
infinitytrue
to enable Infinity Dolly for wheel and pinch. Use this with minDistance
and maxDistance
If the Dolly distance is less (or over) than the minDistance
(or maxDistance
), infinityDolly
will keep the distance and pushes the target position instead.
Optional
init初始状态
Optional
enableOptional
left左键用于平移 (同时右键将用于旋转)
Optional
maxMaximum horizontal angle in radians.
The angle has to be greater than .minAzimuthAngle
.
The default value is Infinity
.
e.g.
cameraControl.maxAzimuthAngle = Infinity;
Optional
maxMaximum distance for dolly. The value must be higher than minDistance
. Default is Infinity
.
PerspectiveCamera only.
Optional
maxMaximum vertical angle in radians.
The angle has to be between .maxPolarAngle
and Math.PI
inclusive.
The default value is Math.PI
.
e.g.
cameraControl.maxPolarAngle = Math.PI;
Optional
maxMax transition speed in unit-per-seconds. Default is Infinity
.
Optional
maxMaximum camera zoom.Default is Infinity
.
Optional
minMinimum horizontal angle in radians.
The angle has to be less than .maxAzimuthAngle
.
The default value is - Infinity
.
e.g.
cameraControl.minAzimuthAngle = - Infinity;
Optional
minMinimum distance for dolly. The value must be higher than 0
. Default is Number.EPSILON
.
PerspectiveCamera only.
Optional
minMinimum vertical angle in radians.
The angle has to be between 0
and .maxPolarAngle
inclusive.
The default value is 0
.
e.g.
cameraControl.maxPolarAngle = 0;
Optional
minMinimum camera zoom. Default is 0.01
.
Optional
mouseUser's mouse input config.
button to assign | behavior |
---|---|
mouseButtons.left |
CameraControls.ACTION.ROTATE * | CameraControls.ACTION.TRUCK | CameraControls.ACTION.OFFSET | CameraControls.ACTION.DOLLY | CameraControls.ACTION.ZOOM | CameraControls.ACTION.NONE |
mouseButtons.right |
CameraControls.ACTION.ROTATE | CameraControls.ACTION.TRUCK * | CameraControls.ACTION.OFFSET | CameraControls.ACTION.DOLLY | CameraControls.ACTION.ZOOM | CameraControls.ACTION.NONE |
mouseButtons.wheel ¹ |
CameraControls.ACTION.ROTATE | CameraControls.ACTION.TRUCK | CameraControls.ACTION.OFFSET | CameraControls.ACTION.DOLLY | CameraControls.ACTION.ZOOM | CameraControls.ACTION.NONE |
mouseButtons.middle ² |
CameraControls.ACTION.ROTATE | CameraControls.ACTION.TRUCK | CameraControls.ACTION.OFFSET | CameraControls.ACTION.DOLLY * | CameraControls.ACTION.ZOOM | CameraControls.ACTION.NONE |
mouseButtons.wheel
is:DOLLY
for Perspective camera.ZOOM
for Orthographic camera, and can't set DOLLY
.Optional
polarSpeed of polar (vertical) rotation. Default is 1.0
.
Optional
restControls how soon the rest
event fires as the camera slows. .Default is 0.01
.
Optional
rotate旋转时显示旋转中心点坐标位置图标(默认是)
Optional
smoothApproximate time in seconds to reach the target. A smaller value will reach the target faster.Default is 0.25
.
Optional
target旋转中心点坐标位置图标颜色,默认 #d4237a
Optional
target旋转中心点坐标位置图标
Optional
target旋转中心点坐标位置图标透明度(0-1)
Optional
target旋转中心点坐标位置图标大小
Optional
truckSpeed of drag for pan and pedestal. Default is 2.0
.
Optional
un双击定位时屏幕坐标转世界坐标使用深度,默认是
Optional
verticalif true, pan in screen-space default true
Optional
zoom缩放时显示旋转中心点坐标位置图标(默认是)
Optional
touchesUser's touch input config.
fingers to assign | behavior |
---|---|
touches.one |
CameraControls.ACTION.TOUCH_ROTATE * | CameraControls.ACTION.TOUCH_TRUCK | CameraControls.ACTION.TOUCH_OFFSET | CameraControls.ACTION.DOLLY |
touches.two |
ACTION.TOUCH_DOLLY_TRUCK | ACTION.TOUCH_DOLLY_OFFSET | ACTION.TOUCH_DOLLY_ROTATE | ACTION.TOUCH_ZOOM_TRUCK | ACTION.TOUCH_ZOOM_OFFSET | ACTION.TOUCH_ZOOM_ROTATE | ACTION.TOUCH_DOLLY | ACTION.TOUCH_ZOOM | CameraControls.ACTION.TOUCH_ROTATE | CameraControls.ACTION.TOUCH_TRUCK | CameraControls.ACTION.TOUCH_OFFSET | CameraControls.ACTION.NONE |
touches.three |
ACTION.TOUCH_DOLLY_TRUCK | ACTION.TOUCH_DOLLY_OFFSET | ACTION.TOUCH_DOLLY_ROTATE | ACTION.TOUCH_ZOOM_TRUCK | ACTION.TOUCH_ZOOM_OFFSET | ACTION.TOUCH_ZOOM_ROTATE | CameraControls.ACTION.TOUCH_ROTATE | CameraControls.ACTION.TOUCH_TRUCK | CameraControls.ACTION.TOUCH_OFFSET | CameraControls.ACTION.NONE |
touches.two
and touches.three
is:TOUCH_DOLLY_TRUCK
for Perspective camera.TOUCH_ZOOM_TRUCK
for Orthographic camera, and can't set TOUCH_DOLLY_TRUCK
and TOUCH_DOLLY
.
Speed of azimuth (horizontal) rotation. Default is
1.0
.