I’m moving a mesh around with moveWithCollisions, but there’s some strange behavior that I don’t understand.
The mesh sometimes collides with the ground while moving parallel to it. You can see a small gap suddenly appear between the mesh and its shadow while walking around randomly, and the console logs “collided with ground”, which I log when the
The mesh leaves the ground to climb onto obstacles, but sometimes this happens when the obstacles are visibly quite far from the mesh. It’s also really “aggressive”, i.e. it will climb onto things that are much too tall. This seems to depend on movement speed - increasing the speed causes the mesh to climb onto the tall block, while at lower speeds it won’t.
Auto-climbing slopes is cool, but is just plain wrong against steps. Is there a way to set the max slope, or just turn this feature off?
Here’s a playground: https://www.babylonjs-playground.com/#J3W7DY#27