First off — fantastic work with nphysics/ncollide/nalgebra. I’m learning so much about physics and geometry from the docs. I am indebted to the rustsim developers, and M. Crozet in particular.
Now to my question: does friction slow down balls? In a minimal test:
- I place a cube on a plane and impulse it along the X axis. The cube slides to a halt.
- I place a ball on a plane and impulse it along the X axis. The ball rolls forever along the positive X axis.
It would be understandable to me if the physics engine were not computing any friction, as the contact surface of a sphere and plane is infinitesimal. But my use-case is for simulating billiards, in which such infinite movement is undesirable.
Are there any recommended ways of getting a ball rolling on a plane to slow to a halt? I’m quite open to any ideas here.
Perhaps, for example, I could coerce the engine into treating the ball as being a few millimeters below the surface of the plane, so as to impart some friction? If this idea would work, how would I go about doing it?
Sorry if this is a noob question! It’s my first time using a physics engine like this one.