[SOLVED] Terrain generation | Falling through mesh

Hi @Newbie_Coder,

That’s quite an old problem with the Bullet version PlayCanvas is currently using.

Increasing subdivisions may help but ultimately it won’t fully fix it. There are 2-3 fixes that have worked for me in the past (either as a partial or full fix):

  1. Use a sphere collider instead of capsule
  2. Use a compound collider with multiple spheres to simulate a capsule
  3. Upgrade to Ammo3, that may be simpler than it sounds, there is some discussion and a build on this closed PR on the official Ammo.js repo: https://github.com/kripken/ammo.js/pull/366

Hope that helps!

3 Likes