Physics decceleration algorithm needed

I am looking for an algorithm which will calculate the decceleration of a spinning wheel, as in a slot machine. A rough algorithm would be fine, accuracy is not that important. If you have an acceleration algorithm, please share, I might be able to reverse it.TIADaniel
[290 byte] By [dantams] at [2007-9-27 22:54:08]
# 1

For a solid spinning cylinder to accelerate(/deccelerate) a force, F, has to act on the cylinder at some distance, d, from the axis around which the cylinder is spinning.

I: the moment of inertia of a solid cylinder

α: the angular acceleration

m: the mass of the cylinder

r: the radius of the cylinder

I = ½mr²

M = Fd

α = M / I

α = 2Fd / mr²

if F is acting on the surface of the cylinder (i.e. d=r) then α = 2F / mr

And then you get a new angular velocity, ω′, like this:

ω′ = ω + αt

If the cylinder is shallow instead and has a very thin wall then:

I = mr²

and if the wall of the cylinder has the thickness w, then:

I = ½m(r² + (r-w)²)

- Marcus Sundman

msundman at 2007-7-7 14:08:35 > top of Java-index,Other Topics,Algorithms...
# 2
If you are doing a simple animation you could use:v = v * k where 0 < k < 1at each time step.
DFrisk at 2007-7-7 14:08:35 > top of Java-index,Other Topics,Algorithms...
# 3
maybe, http://www.amazon.com/exec/obidos/tg/detail/-/0596000065/qid=1035558874/sr=8-1/ref=sr_8_1/104-1040038-9998315?v=glance&n=507846
mchan0 at 2007-7-7 14:08:35 > top of Java-index,Other Topics,Algorithms...
# 4
Thanks, I will try the different solutions that have been presented.- Daniel
dantams at 2007-7-7 14:08:35 > top of Java-index,Other Topics,Algorithms...