How is rolling ball physics set up?

Ive been looking around, but cant seem to find the formula described for a rolling ball slowing down including the gravity factor (9.81) a given friction and mass (kg). The surface would be 100% flat.

Does anyone know how it is set up? For instance in this example a ball rolling over the X axis in + direction (in other words degree 0 if im not mistaken)).


onClipEvent (enterframe) {
	if (!stop) {
		speed -= formula for slowing down;
		_x += speed;
		if (speed < 1) {
			stop = true;
		}
	}
}

This one I guess: http://www.kirupa.com/developer/actionscript/gravity.htm

Yup. I imagine that if you take a look at a textbook definition of how gravity effects a rolling object, you could use the above tutorials as a basis to see how to get the effect you want…

Gravity DOESN’T affect a rolling object on a flat ground :slight_smile:

…which is why I flunked physics. Twice.
:beam:

:stuck_out_tongue:

I remember that from our Physics lessons in school :wink: (or whatever the correct name is)