Hi, I am trying to learn Babylonjs for a small game project and I am stuck in physics and collisions.
So
- I imported a .glb as a small hill ground made in Blender
- I set parent null to imported ground, so I can apply physics
- I put a hero in a CreateBox, and applied physics to the box
So what happens is that the box with the hero falls through the ground but if I move the hero in a CreateSphere ball, it works fine but it acts like a ball.
I want to understand why some types of physics impostors don’t collide with other types and what is the best approach for this to work?
P.S What I am focused on is to make a third-person hero move with waking animation on the ground based on the ground heights or stairs.
All third-person examples I found are on a plain ground I didn’t find any regarding waking on hill, stairs or setting foot step size,