Michael Herzog 1 неделя назад
Родитель
Сommit
8a9a3ad489
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      src/math/Box3.js

+ 4 - 0
src/math/Box3.js

@@ -142,6 +142,10 @@ class Box3 {
 	 * (including its children), accounting for the object's, and children's,
 	 * world transforms. The function may result in a larger box than strictly necessary.
 	 *
+	 * Note: To compute the correct bounding box, make sure the given 3D object
+	 * has an up-to-date world matrix that reflects the current transformation of its
+	 * ancestor nodes. Call `updateWorldMatrix( true, false )` beforehand if you're unsure.
+	 *
 	 * @param {Object3D} object - The 3D object to compute the bounding box for.
 	 * @param {boolean} [precise=false] - If set to `true`, the method computes the smallest
 	 * world-axis-aligned bounding box at the expense of more computation.

粤ICP备19079148号