Player physics impostor does not walk smoothly on other impostors

I have a simple physics impostor for the player. I want the player to walk on other objects (not just a ground impostor).
The player keeps bouncing around and changing directions.

In this example, I expect the player to simply walk in a straight line:

bingo | Babylon.js Playground (babylonjs.com)

Edit:

I compared the different physics engines. Cannon was the most erratic, Ammo performed the best. I’m skeptical that my issue is a matter of choosing the right physics engine however. There must be a better method of fixing this.

Your sphere is actually using a cylinder impostor, but this is not the issue here. The issue is that you are applying an impulse to the sphere at position 0,0,0 and not at the sphere’s position:

bingo | Babylon.js Playground (babylonjs.com)

3 Likes