Skip to content

Commit

Permalink
Docs: Improve OrbitControls page (#26547)
Browse files Browse the repository at this point in the history
  • Loading branch information
WestLangley committed Aug 7, 2023
1 parent 031bcae commit 67c4225
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/examples/en/controls/OrbitControls.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h2>Properties</h2>
<h3>[property:Boolean autoRotate]</h3>
<p>
Set to true to automatically rotate around the target.<br> Note that if this is enabled, you must call [page:.update]
() in your animation loop. If you want the animation to be frame rate independent, apply a time delta value to [page:.update]().
() in your animation loop. If you want the auto-rotate speed to be independent of the frame rate (the refresh rate of the display), you must pass the time `deltaTime`, in seconds, to [page:.update]().
</p>

<h3>[property:Float autoRotateSpeed]</h3>
Expand Down Expand Up @@ -323,8 +323,8 @@ <h3>[method:undefined stopListenToKeyEvents] ()</h3>
<h3>[method:Boolean update] ( [param:Number deltaTime] )</h3>
<p>
Update the controls. Must be called after any manual changes to the camera's transform,
or in the update loop if [page:.autoRotate] or [page:.enableDamping] are set. `deltaTime` is optional
and only required if you want [page:.autoRotate] to be frame rate independent.
or in the update loop if [page:.autoRotate] or [page:.enableDamping] are set. `deltaTime`, in seconds, is optional,
and is only required if you want the auto-rotate speed to be independent of the frame rate (the refresh rate of the display).
</p>

<h2>Source</h2>
Expand Down
7 changes: 5 additions & 2 deletions docs/examples/ko/controls/OrbitControls.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ <h2>특성</h2>
<h3>[property:Boolean autoRotate]</h3>
<p>
대상 주위를 자동으로 회전하려면 true로 설정합니다.<br> autoRotate를 활성할 경우, 애니메이션 루프에서 [page:.update()]를 호출해야 합니다.
If you want the animation to be frame rate independent, apply a time delta value to [page:.update]().
Set to true to automatically rotate around the target.<br> Note that if this is enabled, you must call [page:.update]
() in your animation loop. If you want the auto-rotate speed to be independent of the frame rate (the refresh rate of the display), you must pass the time `deltaTime`, in seconds, to [page:.update]().
</p>

<h3>[property:Float autoRotateSpeed]</h3>
Expand Down Expand Up @@ -320,7 +321,9 @@ <h3>[method:undefined stopListenToKeyEvents] ()</h3>
<h3>[method:Boolean update] ( [param:Number deltaTime] )</h3>
<p>
컨트롤을 업데이트합니다. 카메라를 수동으로 변환하거나, [page:.autoRotate] 또는 [page:.enableDamping]을 설정할 경우 업데이트 루프에서 호출해야 합니다.
`deltaTime` is optional and only required if you want [page:.autoRotate] to be frame rate independent.
Update the controls. Must be called after any manual changes to the camera's transform,
or in the update loop if [page:.autoRotate] or [page:.enableDamping] are set. `deltaTime`, in seconds, is optional,
and is only required if you want the auto-rotate speed to be independent of the frame rate (the refresh rate of the display).
</p>

<h2>Source</h2>
Expand Down
7 changes: 5 additions & 2 deletions docs/examples/zh/controls/OrbitControls.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ <h3>[property:Boolean autoRotate]</h3>
<p>
将其设为true,以自动围绕目标旋转。<br>
请注意,如果它被启用,你必须在你的动画循环里调用[page:.update]()。
If you want the animation to be frame rate independent, apply a time delta value to [page:.update]().
Set to true to automatically rotate around the target.<br> Note that if this is enabled, you must call [page:.update]
() in your animation loop. If you want the auto-rotate speed to be independent of the frame rate (the refresh rate of the display), you must pass the time `deltaTime`, in seconds, to [page:.update]().
</p>

<h3>[property:Float autoRotateSpeed]</h3>
Expand Down Expand Up @@ -324,7 +325,9 @@ <h3>[method:Boolean update] ( [param:Number deltaTime] )</h3>
<p>
更新控制器。必须在摄像机的变换发生任何手动改变后调用,
或如果[page:.autoRotate]或[page:.enableDamping]被设置时,在update循环里调用。
`deltaTime` is optional and only required if you want [page:.autoRotate] to be frame rate independent.
Update the controls. Must be called after any manual changes to the camera's transform,
or in the update loop if [page:.autoRotate] or [page:.enableDamping] are set. `deltaTime`, in seconds, is optional,
and is only required if you want the auto-rotate speed to be independent of the frame rate (the refresh rate of the display).
</p>

<h2>源代码</h2>
Expand Down

0 comments on commit 67c4225

Please sign in to comment.