Hi everyone, I’m new to Babylon.js and have been stuck on an issue for quite some time. I’d really appreciate any guidance you can offer.
What I’m trying to achieve is fairly straightforward: I have a capsule that should be able to move freely along the ground, with its movement properly blocked by obstacles. From the API documentation, AbstractMesh.moveWithCollisions seems like a great fit for handling this.
In my test setup, I’m continuously applying gravity to the capsule. My expectation is that it should stay grounded and closely follow the surface. However, I’m noticing that it consistently floats a small distance above the ground instead.
I’m not quite sure what might be causing this behavior. Has anyone encountered something similar or knows what I might be missing? Any suggestions would be greatly appreciated!