Przeglądaj źródła

Add note on shallow bounding of getBoundingInfo

See [this comment](https://github.com/BabylonJS/Babylon.js/issues/6496#issuecomment-503245577)
Thibaut Tiberghien 6 lat temu
rodzic
commit
f6d45fc1d8
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      src/Meshes/abstractMesh.ts

+ 3 - 1
src/Meshes/abstractMesh.ts

@@ -958,7 +958,9 @@ export class AbstractMesh extends TransformNode implements IDisposable, ICullabl
     }
 
     /**
-     * Returns the mesh BoundingInfo object or creates a new one and returns if it was undefined
+     * Returns the mesh BoundingInfo object or creates a new one and returns if it was undefined.
+     * Note that it returns a shallow bounding of the mesh (i.e. it does not include children).
+     * To get the full bounding of all children, call `getHierarchyBoundingVectors` instead.
      * @returns a BoundingInfo
      */
     public getBoundingInfo(): BoundingInfo {