# Physics, The ball goes through the terrain

**URL:** <https://forum.babylonjs.com/t/physics-the-ball-goes-through-the-terrain/10693>\
**Category:** Questions\
**Created:** [May 9, 2020, 4:58pm UTC](https://forum.babylonjs.com/t/physics-the-ball-goes-through-the-terrain/10693 "2020-05-09T16:58:10Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Raggar](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raggar/32/20672_2.png) [@Raggar](https://forum.babylonjs.com/u/Raggar)\
**Post date:** [May 10, 2020, 5:01pm UTC](https://forum.babylonjs.com/t/physics-the-ball-goes-through-the-terrain/10693/12 "2020-05-10T17:01:32Z")

</div>

As I wrote before, OimoJS does not support the MeshImpostor. It uses a box instead. So either use a BoxImpostor, or switch to a physics engine supporting the correct impostor-type, like CannonJS or AmmoJS: [Use a Physics Engine - Babylon.js Documentation](https://doc.babylonjs.com/how_to/using_the_physics_engine#impostors)

Edit: Check this PG: [Babylon.js Playground](https://playground.babylonjs.com/#C0ILX9)  
Lines 21 - 23. Try OimoJS, and you’ll see the mesh isn’t used. Instead it uses the boundingBox of the model. CannonJS and AmmoJS both use the geometry.  
Can be used with heightmap terrain as well: [https://playground.babylonjs.com/#C0ILX9#1](https://playground.babylonjs.com/#C0ILX9#1)  
(HeightmapImpostor only supported by CannonJS, OimoJS again uses boxes, and the AmmoJS plugin requires a MeshImpostor instead)

---

_[View the full topic](https://forum.babylonjs.com/t/physics-the-ball-goes-through-the-terrain/10693)._
