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