2
0
Эх сурвалжийг харах

Merge pull request #21134 from 1993heqiang/local_dev

Docs: Modify the description of autoRotateSpeed.
Mr.doob 4 жил өмнө
parent
commit
b15bd85b2f

+ 1 - 1
docs/examples/en/controls/OrbitControls.html

@@ -87,7 +87,7 @@
 		<h3>[property:Float autoRotateSpeed]</h3>
 		<p>
 			How fast to rotate around the target if [page:.autoRotate] is true. Default is 2.0, which equates to 30 seconds
-			per rotation at 60fps.<br> Note that if [page:.autoRotate] is enabled, you must call [page:.update]
+			per orbit at 60fps.<br> Note that if [page:.autoRotate] is enabled, you must call [page:.update]
 			() in your animation loop.
 		</p>
 

+ 8 - 11
docs/examples/zh/controls/OrbitControls.html

@@ -86,7 +86,7 @@
 
 		<h3>[property:Float autoRotateSpeed]</h3>
 		<p>
-			当[page:.autoRotate]为true时,围绕目标旋转的速度将有多快,默认值为2.0,相当于在60fps时每旋转一需要30秒。<br>
+			当[page:.autoRotate]为true时,围绕目标旋转的速度将有多快,默认值为2.0,相当于在60fps时每旋转一需要30秒。<br>
 			请注意,如果[page:.autoRotate]被启用,你必须在你的动画循环里调用[page:.update]()。
 		</p>
 
@@ -104,7 +104,7 @@
 
 		<h3>[property:Boolean enabled]</h3>
 		<p>
-			When set to *false*, the controls will not respond to user input. Default is *true*.
+			当设置为false时,控制器将不会响应用户的操作。默认值为true。
 		</p>
 
 		<h3>[property:Boolean enableDamping]</h3>
@@ -151,7 +151,7 @@ controls.keys = {
 
 		<h3>[property:Float maxAzimuthAngle]</h3>
 		<p>
-			How far you can orbit horizontally, upper limit. If set, the interval [ min, max ] must be a sub-interval of [ - 2 PI, 2 PI ], with ( max - min < 2 PI ). Default is Infinity.
+			你能够水平旋转的角度上限。如果设置,其有效值范围为[-2 * Math.PI,2 * Math.PI],且旋转角度的上限和下限差值小于2 * Math.PI。默认值为无穷大。
 		</p>
 
 		<h3>[property:Float maxDistance]</h3>
@@ -171,7 +171,7 @@ controls.keys = {
 
 		<h3>[property:Float minAzimuthAngle]</h3>
 		<p>
-			How far you can orbit horizontally, lower limit. If set, the interval [ min, max ] must be a sub-interval of [ - 2 PI, 2 PI ], with ( max - min < 2 PI ). Default is Infinity.
+			你能够水平旋转的角度下限。如果设置,其有效值范围为[-2 * Math.PI,2 * Math.PI],且旋转角度的上限和下限差值小于2 * Math.PI。默认值为无穷大。
 		</p>
 
 		<h3>[property:Float minDistance]</h3>
@@ -225,10 +225,8 @@ controls.mouseButtons = {
 		<h3>[property:Boolean screenSpacePanning]</h3>
 		<p>
 			定义当平移的时候摄像机的位置将如何移动。如果为true,摄像机将在屏幕空间内平移。
-			否则,摄像机将在与摄像机向上方向垂直的平面中平移。
-			Defines how the camera's position is translated when panning. If true, the camera pans in screen space.
-			Otherwise, the camera pans in the plane orthogonal to the camera's up direction.
-			Default is true for OrbitControls; false for MapControls.
+			否则,摄像机将在与摄像机向上方向垂直的平面中平移。当使用 OrbitControls 时,
+			默认值为true;当使用 MapControls 时,默认值为false。
 		</p>
 
 		<h3>[property:Vector3 target0]</h3>
@@ -244,7 +242,7 @@ controls.mouseButtons = {
 
 		<h3>[property:Object touches]</h3>
 		<p>
-			This object contains references to the touch actions used by the controls.
+			该对象包含由控件所使用的触摸操作的引用。
 			<code>
 controls.touches = {
 	ONE: THREE.TOUCH.ROTATE,
@@ -261,7 +259,6 @@ controls.touches = {
 		<h3>[property:Float zoomSpeed]</h3>
 		<p>
 			摄像机缩放的速度,其默认值为1。
-			Speed of zooming / dollying. Default is 1.
 		</p>
 
 
@@ -285,7 +282,7 @@ controls.touches = {
 
 		<h3>[method:void listenToKeyEvents] ( [param:HTMLDOMElement domElement] )</h3>
 		<p>
-			Adds key event listeners to the given DOM element. *window* is a recommended argument for using this method.
+			为指定的DOM元素添加按键监听。推荐将window作为指定的DOM元素。
 		</p>
 
 		<h3>[method:null reset] ()</h3>

+ 1 - 1
examples/js/controls/OrbitControls.js

@@ -60,7 +60,7 @@ THREE.OrbitControls = function ( object, domElement ) {
 	// Set to true to automatically rotate around the target
 	// If auto-rotate is enabled, you must call controls.update() in your animation loop
 	this.autoRotate = false;
-	this.autoRotateSpeed = 2.0; // 30 seconds per round when fps is 60
+	this.autoRotateSpeed = 2.0; // 30 seconds per orbit when fps is 60
 
 	// The four arrow keys
 	this.keys = { LEFT: 37, UP: 38, RIGHT: 39, BOTTOM: 40 };