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;
		}
	}
}

Thanks :wink:

And concerning the rolling ball physics, as you call it, if the ground is 100% flat, mass has absolutely no influence (because the reaction of the ground is the exact opposite of the force created by the mass), only friction matters:

damp = .95 ;
theBall.speed = 10 ;
theBall.onEnterframe = function () {
	this._x += this.speed ;
	speed *= damp ;
}