# \#boundingbox

**URL:** https://forum.babylonjs.com/tag/boundingbox/261.md

[Latest](https://forum.babylonjs.com/latest.md) · [Categories](https://forum.babylonjs.com/categories.md) · [Tags](https://forum.babylonjs.com/tags.md)

---

## [Draft: Fast BoundingInfo](https://forum.babylonjs.com/t/draft-fast-boundinginfo/62770)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 10\
**Last updated:** [May 18, 2026, 6:26am UTC](https://forum.babylonjs.com/t/draft-fast-boundinginfo/62770 "2026-05-18T06:26:36Z")

</div>

Note This is a very early draft, and could be changed in future, and might not be implemented. This post is crafted with the help of AI, especially the algorithm part. Motivation BoundingInfo is the most frequently call…

---

## [Per instance bbox culling for thin instance picking](https://forum.babylonjs.com/t/per-instance-bbox-culling-for-thin-instance-picking/57251)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 8\
**Last updated:** [April 24, 2026, 9:15am UTC](https://forum.babylonjs.com/t/per-instance-bbox-culling-for-thin-instance-picking/57251 "2026-04-24T09:15:30Z")

</div>

Proposal: per-instance bounding-info culling for thin-instance picking Summary The current thin-instance picking flow performs one whole-mesh broad-phase in InternalPick() and InternalMultiPick(), then iterates every thi…

---

## [Thin Instances: optimize bounding info refresh performance](https://forum.babylonjs.com/t/thin-instances-optimize-bounding-info-refresh-performance/63256)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 2\
**Last updated:** [April 23, 2026, 3:29pm UTC](https://forum.babylonjs.com/t/thin-instances-optimize-bounding-info-refresh-performance/63256 "2026-04-23T15:29:22Z")

</div>

Part of Draft: Fast BoundingInfo Playground: Open devtools to see bench result in console:

---

## [Customize boundingboxgizmo](https://forum.babylonjs.com/t/customize-boundingboxgizmo/63102)

<div class="topic-metadata">

**Author:** [@Trevor\_Orr](https://forum.babylonjs.com/u/Trevor_Orr)\
**Replies:** 2\
**Last updated:** [April 9, 2026, 12:44am UTC](https://forum.babylonjs.com/t/customize-boundingboxgizmo/63102 "2026-04-09T00:44:55Z")

</div>

I was wanting to customize the boundingboxgizmo so that when a node is selected it puts the nodes name or uniqueid in a corner of the boundingbox. Is this do able? If so any pointers on how I could do that?

---

## [Mesh.MinMax breaks bounding box data](https://forum.babylonjs.com/t/mesh-minmax-breaks-bounding-box-data/60884)

<div class="topic-metadata">

**Author:** [@qwiglydee](https://forum.babylonjs.com/u/qwiglydee)\
**Replies:** 3\
**Last updated:** [October 10, 2025, 7:47am UTC](https://forum.babylonjs.com/t/mesh-minmax-breaks-bounding-box-data/60884 "2025-10-10T07:47:19Z")

</div>

Hi! That’s totally weird. After calling to Mesh.MinMax coordinates of bounding box of the very first mesh get distorted. The console reads: BJS - \[13:31:59\]: Babylon.js v8.31.0 - WebGL2 ==== just created ==== box.…

---

## [Bounding box bug in 8.26.0](https://forum.babylonjs.com/t/bounding-box-bug-in-8-26-0/60373)

<div class="topic-metadata">

**Author:** [@bvaisman](https://forum.babylonjs.com/u/bvaisman)\
**Replies:** 3\
**Last updated:** [September 4, 2025, 3:32pm UTC](https://forum.babylonjs.com/t/bounding-box-bug-in-8-26-0/60373 "2025-09-04T15:32:52Z")

</div>

Hi, In the last version (8.26.0), there’s exactly the same bug I reported here a few days ago : Bounding box bug in 8.22.3 @Evgeni\_Popov, sorry to annoy you but I’m sure you’re able to do something, when you have time …

---

## [How to use mesh's bounding as collisionMesh of TouchMeshButton3D](https://forum.babylonjs.com/t/how-to-use-meshs-bounding-as-collisionmesh-of-touchmeshbutton3d/60087)

<div class="topic-metadata">

**Author:** [@rollaroll](https://forum.babylonjs.com/u/rollaroll)\
**Replies:** 2\
**Last updated:** [August 15, 2025, 12:48pm UTC](https://forum.babylonjs.com/t/how-to-use-meshs-bounding-as-collisionmesh-of-touchmeshbutton3d/60087 "2025-08-15T12:48:18Z")

</div>

I need to use 3D text as the mesh of a button3D, but I find that the button is only triggered when the mouse touches the characters in the text. I hope to use the boundingbox of the 3D text as the collisionMesh of TouchM…

---

## [InstancedMesh: duplicated call to refreshBoundingInfo in clone()](https://forum.babylonjs.com/t/instancedmesh-duplicated-call-to-refreshboundinginfo-in-clone/59939)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 7\
**Last updated:** [August 8, 2025, 2:56pm UTC](https://forum.babylonjs.com/t/instancedmesh-duplicated-call-to-refreshboundinginfo-in-clone/59939 "2025-08-08T14:56:15Z")

</div>

In InstancedMesh.clone(), it calls refreshBoundingInfo after the cloned instance constructed. But createInstance , which internally called Mesh.\_instancedMeshFactory, which called the InstancedMesh constructor, where r…

---

## [Attaching bounding box gizmo to mesh causes its scale to change](https://forum.babylonjs.com/t/attaching-bounding-box-gizmo-to-mesh-causes-its-scale-to-change/58595)

<div class="topic-metadata">

**Author:** [@peabnuts123](https://forum.babylonjs.com/u/peabnuts123)\
**Replies:** 7\
**Last updated:** [June 24, 2025, 10:12am UTC](https://forum.babylonjs.com/t/attaching-bounding-box-gizmo-to-mesh-causes-its-scale-to-change/58595 "2025-06-24T10:12:57Z")

</div>

Issue In certain specific scenarios, attaching a bounding box gizmo to a mesh causes the mesh’s scale to change. That is, when creating an “editor”-type application, selecting a mesh causes the object to change size ever…

---

## [Frustum check in simd](https://forum.babylonjs.com/t/frustum-check-in-simd/55552)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 2\
**Last updated:** [December 26, 2024, 1:04am UTC](https://forum.babylonjs.com/t/frustum-check-in-simd/55552 "2024-12-26T01:04:19Z")

</div>

For bounding boxed aligned to 4 floats (16 bytes) Depends on cglm ▶ AVX Impl ▶ Wasm Impl Wasm Impl with deps (loop unrolled): ▶ The same algo in scalar js

---

## [Batched or Instanced BoundingBoxRenderer](https://forum.babylonjs.com/t/batched-or-instanced-boundingboxrenderer/54977)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 13\
**Last updated:** [November 29, 2024, 2:37am UTC](https://forum.babylonjs.com/t/batched-or-instanced-boundingboxrenderer/54977 "2024-11-29T02:37:19Z")

</div>

Version: git master (73ab4d6) Status Merged and released 7.37.2, latest example here: https://playground.babylonjs.com/#NRNVQA#2 Background Currently in BoundingBoxRenderer, it renders in a loop, calling engine.drawEle…

---

## [Inspector mode reports an error when opening the bounding box](https://forum.babylonjs.com/t/inspector-mode-reports-an-error-when-opening-the-bounding-box/54214)

<div class="topic-metadata">

**Author:** [@SunOfHomeBoy](https://forum.babylonjs.com/u/SunOfHomeBoy)\
**Replies:** 10\
**Last updated:** [October 25, 2024, 9:50am UTC](https://forum.babylonjs.com/t/inspector-mode-reports-an-error-when-opening-the-bounding-box/54214 "2024-10-25T09:50:49Z")

</div>

First of all, I think this problem cannot be reproduced on Playground. Secondly, my browser version is Chrome: 129.0.6668.60，Babylonjs: 7.18.0 When I call inspector on another page in the same browser to show the boun…

---

## [PickingRay does not work on a boundingbox of a moved mesh](https://forum.babylonjs.com/t/pickingray-does-not-work-on-a-boundingbox-of-a-moved-mesh/53886)

<div class="topic-metadata">

**Author:** [@ylacaute](https://forum.babylonjs.com/u/ylacaute)\
**Replies:** 6\
**Last updated:** [October 2, 2024, 4:08pm UTC](https://forum.babylonjs.com/t/pickingray-does-not-work-on-a-boundingbox-of-a-moved-mesh/53886 "2024-10-02T16:08:14Z")

</div>

Hi there ! The playground below shows that a ray (from screen point x,y) is not working on a moved mesh. Using those functions changes nothing. box.computeWorldMatrix(true); box.refreshBoundingInfo(true, true); The f…

---

## [Select the scaling controls in JS of the bounding box gizmo](https://forum.babylonjs.com/t/select-the-scaling-controls-in-js-of-the-bounding-box-gizmo/53392)

<div class="topic-metadata">

**Author:** [@max.t](https://forum.babylonjs.com/u/max.t)\
**Replies:** 1\
**Last updated:** [September 12, 2024, 1:31pm UTC](https://forum.babylonjs.com/t/select-the-scaling-controls-in-js-of-the-bounding-box-gizmo/53392 "2024-09-12T13:31:31Z")

</div>

Hello, I’m a beginner in JS and on BabylonJS, here’s my project : playground demo In which I’d like to calculate the remaining distance between the black frame and the white box so that I can completely fill the space …

---

## [Issue updating thin instance boundary information](https://forum.babylonjs.com/t/issue-updating-thin-instance-boundary-information/51901)

<div class="topic-metadata">

**Author:** [@Akeyn](https://forum.babylonjs.com/u/Akeyn)\
**Replies:** 2\
**Last updated:** [July 8, 2024, 11:40am UTC](https://forum.babylonjs.com/t/issue-updating-thin-instance-boundary-information/51901 "2024-07-08T11:40:53Z")

</div>

Good afternoon! I recently started learning BabylonJS and I liked using ThinInstances. So I wanted to change the position of each instance separately, I succeeded, but as soon as the instance goes beyond the bounding bo…

---

## [Is there an easy/more efficient way to set a Havok physics body box shape = mesh's bounding box?](https://forum.babylonjs.com/t/is-there-an-easy-more-efficient-way-to-set-a-havok-physics-body-box-shape-meshs-bounding-box/48512)

<div class="topic-metadata">

**Author:** [@SugarRayLua](https://forum.babylonjs.com/u/SugarRayLua)\
**Replies:** 18\
**Last updated:** [May 24, 2024, 10:10am UTC](https://forum.babylonjs.com/t/is-there-an-easy-more-efficient-way-to-set-a-havok-physics-body-box-shape-meshs-bounding-box/48512 "2024-05-24T10:10:07Z")

</div>

Dear Babylon Community, Dear @PirateJC, I’m hoping to find an easy way to use set a physics body BOX shape = the BabylonJS computed bounding box for my mesh. The reason I want to do that is that I have a ground Mesh fr…

---

## [BoundingBox position does not align properly](https://forum.babylonjs.com/t/boundingbox-position-does-not-align-properly/49797)

<div class="topic-metadata">

**Author:** [@yedpodtrzitko](https://forum.babylonjs.com/u/yedpodtrzitko)\
**Replies:** 7\
**Last updated:** [April 28, 2024, 8:33am UTC](https://forum.babylonjs.com/t/boundingbox-position-does-not-align-properly/49797 "2024-04-28T08:33:48Z")

</div>

Hi, not sure if the following behaviour is a bug or just a footgun. See the linked PG - click the mesh, and move it around using the Move Gizmo. At that moment the bounding box will start being misaligned. When I enabl…

---

## [How to get more accurate bounding box when local rotation does not help?](https://forum.babylonjs.com/t/how-to-get-more-accurate-bounding-box-when-local-rotation-does-not-help/49645)

<div class="topic-metadata">

**Author:** [@s207152](https://forum.babylonjs.com/u/s207152)\
**Replies:** 2\
**Last updated:** [April 15, 2024, 7:50pm UTC](https://forum.babylonjs.com/t/how-to-get-more-accurate-bounding-box-when-local-rotation-does-not-help/49645 "2024-04-15T19:50:17Z")

</div>

Hi all, As I play around bounding box, it looks like the current bounding box implementation is AABB rotated according to mesh local rotation. I have modified the playground of Mesh Intersection from docs. From left…

---

## [Incorrect Bounding Info](https://forum.babylonjs.com/t/incorrect-bounding-info/44336)

<div class="topic-metadata">

**Author:** [@Caner](https://forum.babylonjs.com/u/Caner)\
**Replies:** 16\
**Last updated:** [October 3, 2023, 1:50pm UTC](https://forum.babylonjs.com/t/incorrect-bounding-info/44336 "2023-10-03T13:50:20Z")

</div>

Hello again! I have an application that requires bounding information of meshes, regardless of their transformations (except scaling). Which means, I would like to read correctBoundingInfo.boundingBox.extendSize to outp…

---

## [Detecting clicks on an imported asset](https://forum.babylonjs.com/t/detecting-clicks-on-an-imported-asset/39926)

<div class="topic-metadata">

**Author:** [@Treycos](https://forum.babylonjs.com/u/Treycos)\
**Replies:** 3\
**Last updated:** [April 17, 2023, 5:35pm UTC](https://forum.babylonjs.com/t/detecting-clicks-on-an-imported-asset/39926 "2023-04-17T17:35:59Z")

</div>

Hey there, I’m trying to detect pointer-down events on imported assets, but struggling to find the correct way to do so. Similar to an RTS game, I want the player to be able to “select” buildings and units on a plane. …

---

## [Bounding Info Encapsulation](https://forum.babylonjs.com/t/bounding-info-encapsulation/39894)

<div class="topic-metadata">

**Author:** [@Jon\_Jekeli](https://forum.babylonjs.com/u/Jon_Jekeli)\
**Replies:** 6\
**Last updated:** [April 17, 2023, 3:08pm UTC](https://forum.babylonjs.com/t/bounding-info-encapsulation/39894 "2023-04-17T15:08:19Z")

</div>

We are getting weird results from bounding info encapsulateBoundingInfo. Looking at the code, it calls encapsulate on the world minimum and maximum of the bounding info passed in. this.encapsulate(toEncapsulate.boundin…

---

## [Discrepancy between showBoundingBox and getHierarchyBoundingVectors](https://forum.babylonjs.com/t/discrepancy-between-showboundingbox-and-gethierarchyboundingvectors/39076)

<div class="topic-metadata">

**Author:** [@reimund](https://forum.babylonjs.com/u/reimund)\
**Replies:** 3\
**Last updated:** [April 14, 2023, 10:49am UTC](https://forum.babylonjs.com/t/discrepancy-between-showboundingbox-and-gethierarchyboundingvectors/39076 "2023-04-14T10:49:40Z")

</div>

I have an animated mesh and it seems like the animation is messing with the bounding box calculation. When I create a bounding box using getHierarchyBoundingVectors’, the output min/max values translates into a much lar…

---

## [Incorrect bounding box after loading a model quantized by gltf-transform](https://forum.babylonjs.com/t/incorrect-bounding-box-after-loading-a-model-quantized-by-gltf-transform/39561)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 2\
**Last updated:** [April 3, 2023, 10:48pm UTC](https://forum.babylonjs.com/t/incorrect-bounding-box-after-loading-a-model-quantized-by-gltf-transform/39561 "2023-04-03T22:48:41Z")

</div>

Environment: Windows 10 x64 Chromium 111.0.5563.65 x64 (ungoogled-chromium build) Babylon.js 5.53.0 Assets: models.zip (75.3 KB) model\_orig.glb is the model before quantize, which is ok model\_gltf-transform.glb …

---

## [colorShader and colorShaderOccQuery kept after serialize](https://forum.babylonjs.com/t/colorshader-and-colorshaderoccquery-kept-after-serialize/36870)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 1\
**Last updated:** [December 26, 2022, 10:30am UTC](https://forum.babylonjs.com/t/colorshader-and-colorshaderoccquery-kept-after-serialize/36870 "2022-12-26T10:30:31Z")

</div>

OS: Windows 10 x64 Browser: ungoogled-chromium 108.0.5359.95 Babylon.js: 5.39.0 Playground: https://playground.babylonjs.com/#E9EBSL#1 Open the inspector and expend the materials. Expected: The colorShader and colo…

---

## [getBoundingBox around mesh that is rotated](https://forum.babylonjs.com/t/getboundingbox-around-mesh-that-is-rotated/36708)

<div class="topic-metadata">

**Author:** [@Leon](https://forum.babylonjs.com/u/Leon)\
**Replies:** 6\
**Last updated:** [December 21, 2022, 7:32am UTC](https://forum.babylonjs.com/t/getboundingbox-around-mesh-that-is-rotated/36708 "2022-12-21T07:32:54Z")

</div>

I have a mesh of a house that I have loaded from a gltf file. the house is not perpendicular to the world, so when i do a mesh.getBoundingInfo().boundingBox the bounding box is larger than the square house. How can I …
