In the video, we can see the ball is bouncing in between the two gray separators like crazy because of the rotation of the roulette table. This should not be the case as the ball has a restitution of 0 and a very large mass. I tried with the seperators with mass 0 and 1 and the same behaviour occurs.
Code to create ball:
ball.physicsImpostor = new PhysicsImpostor(ball, PhysicsImpostor.SphereImpostor, {
mass: 2000, // usually is 20
restitution: 0,
}, scene);
Code for the separator mesh:
m.physicsImpostor = new BABYLON.PhysicsImpostor(m, BABYLON.PhysicsImpostor.MeshImpostor, {
mass: 0
friction: 0.45, restitution: 0
}, scene)