Просмотр исходного кода

ArcballControls: Document correct usage of `adjustNearFar`. (#33479)

Michael Herzog 1 месяц назад
Родитель
Сommit
bbc428c4b8
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      examples/jsm/controls/ArcballControls.js

+ 4 - 0
examples/jsm/controls/ArcballControls.js

@@ -265,6 +265,10 @@ class ArcballControls extends Controls {
 		 * performed trying to maintain the same visible portion given by initial near and far
 		 * values. Only works with perspective cameras.
 		 *
+		 * This feature only works as expected if the camera's initial state (position, near and far values)
+		 * is correctly configured before creating the controls. Otherwise {@link ArcballControls#setCamera}
+		 * must be called by the application.
+		 *
 		 * @type {boolean}
 		 * @default false
 		 */

粤ICP备19079148号