# HeightmapImposter not working for me

**URL:** <https://forum.babylonjs.com/t/heightmapimposter-not-working-for-me/6580>\
**Category:** Questions\
**Created:** [October 25, 2019, 10:39am UTC](https://forum.babylonjs.com/t/heightmapimposter-not-working-for-me/6580 "2019-10-25T10:39:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jieling\_Yang](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jieling_yang/32/2547_2.png) [@Jieling\_Yang](https://forum.babylonjs.com/u/Jieling_Yang)\
**Post date:** [October 25, 2019, 10:39am UTC](https://forum.babylonjs.com/t/heightmapimposter-not-working-for-me/6580/1 "2019-10-25T10:39:30Z")

</div>

Hi,

I created a playground here [https://playground.babylonjs.com/#QLH09X#3](https://playground.babylonjs.com/#QLH09X#3).

As you can see in the code, I used `BABYLON.PhysicsImpostor` for both ground and box, but the box still just went through the ground.

I basically just follow this [https://www.babylonjs-playground.com/#D3LQD#7](https://www.babylonjs-playground.com/#D3LQD#7)

I’m sure it’s just a small thing that’s missing, but I just can’t spot it.

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [October 25, 2019, 11:18am UTC](https://forum.babylonjs.com/t/heightmapimposter-not-working-for-me/6580/2 "2019-10-25T11:18:20Z")

</div>

Hi @Jieling_Yang

The physics Impostor must be create when the ground mesh is ready. Here is a fixed PG:

[https://playground.babylonjs.com/#QLH09X#4](https://playground.babylonjs.com/#QLH09X#4)

---

<div class="post-metadata">

**Author:** ![Jieling\_Yang](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jieling_yang/32/2547_2.png) [@Jieling\_Yang](https://forum.babylonjs.com/u/Jieling_Yang)\
**Post date:** [October 25, 2019, 11:43am UTC](https://forum.babylonjs.com/t/heightmapimposter-not-working-for-me/6580/3 "2019-10-25T11:43:28Z")

</div>

Thanks again Cedric 😀

---

<div class="post-metadata">

**Author:** ![Jieling\_Yang](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jieling_yang/32/2547_2.png) [@Jieling\_Yang](https://forum.babylonjs.com/u/Jieling_Yang)\
**Post date:** [October 25, 2019, 1:08pm UTC](https://forum.babylonjs.com/t/heightmapimposter-not-working-for-me/6580/4 "2019-10-25T13:08:35Z")

</div>

Hi Cedric,

Another question: The playground you provided, ground is using HeightmapImposter, however if you look close enough, you will see when the box landed, it appeared to be hitting on BoxImposter because it’s hovering.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/7/756083985f2f3679deca68b3bb295bfba9a20d6b.jpeg)  
This is different from this [https://playground.babylonjs.com/#D3LQD#7](https://playground.babylonjs.com/#D3LQD#7). So, what’s make the difference?

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [October 25, 2019, 1:37pm UTC](https://forum.babylonjs.com/t/heightmapimposter-not-working-for-me/6580/5 "2019-10-25T13:37:28Z")

</div>

Switching to Cannon fixes the issue:

[https://playground.babylonjs.com/#QLH09X#5](https://playground.babylonjs.com/#QLH09X#5)

---

<div class="post-metadata">

**Author:** ![Jieling\_Yang](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jieling_yang/32/2547_2.png) [@Jieling\_Yang](https://forum.babylonjs.com/u/Jieling_Yang)\
**Post date:** [October 25, 2019, 2:07pm UTC](https://forum.babylonjs.com/t/heightmapimposter-not-working-for-me/6580/6 "2019-10-25T14:07:42Z")

</div>

Thanks!
