I faced a problem with btHeightfieldTerrainShape which doesn't collide with anything, not even btSphereShape.
Suprisingly raycasting with this shape enabled results in nice raycast positions, matching the terrain perfectly

If I raycast and create a sphere some meters above, it will fall through.
I recorded a video of that issue https://youtu.be/ZK2d4dQB3w0
Here is the code I use to initialize physics, very standard setting https://github.com/achlubek/venginenati ... hysics.cpp
Please if you can help I will be very thankful!