# intersectsMesh behaviour

**URL:** <https://forum.babylonjs.com/t/intersectsmesh-behaviour/32513>\
**Category:** Questions\
**Tags:** meshes\
**Created:** [July 26, 2022, 7:15pm UTC](https://forum.babylonjs.com/t/intersectsmesh-behaviour/32513 "2022-07-26T19:15:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Takemura](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/takemura/32/25836_2.png) [@Takemura](https://forum.babylonjs.com/u/Takemura)\
**Post date:** [July 26, 2022, 7:15pm UTC](https://forum.babylonjs.com/t/intersectsmesh-behaviour/32513/1 "2022-07-26T19:15:42Z")

</div>

Yo altogether,

my next small project is a simple Mesh Intersecting Example, to understand the suiting method for projectiles/bullets. For some reason my intersectsMesh gives true even if there is no intersection. Are there some position data used that are not up-to-date or does .dispose() cause problems?

My simple Mesh Intersection PG: [https://playground.babylonjs.com/#F6CXJA#7](https://playground.babylonjs.com/#F6CXJA#7)

Edit: I tried using computeWorldMatrix for both meshes before intersectsMesh or registerAfterRender. And used true as second parameter, to be more precise. It got better from calculating ~10 intersections to 4 intersections when bullet intersects target.

Also I switched to scene.onBeforeRenderObservable.add and SPS, but result is the same.

---

<div class="post-metadata">

**Author:** ![Takemura](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/takemura/32/25836_2.png) [@Takemura](https://forum.babylonjs.com/u/Takemura)\
**Post date:** [July 26, 2022, 9:53pm UTC](https://forum.babylonjs.com/t/intersectsmesh-behaviour/32513/3 "2022-07-26T21:53:56Z")

</div>

Solved it, just replace

> delete bullet;

by

> delete bullets[bulletKey];
