Explorar o código

Add note on shallow bounding of getBoundingInfo

See [this comment](https://github.com/BabylonJS/Babylon.js/issues/6496#issuecomment-503245577)
Thibaut Tiberghien %!s(int64=6) %!d(string=hai) anos
pai
achega
f6d45fc1d8
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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 {