slot machine physics

coolgroupsdotcom 101 Sep 07, 2005 at 18:59

Does anyone have any ideas for programming the physics of the reels spinning on a 3d slot machine? Basically, I need a function that produces an angle of rotation given the current time. Eventually, the angle of rotation needs to end up at a multiple of 45 degrees (because I have 8 items on each reel and I want them to be aligned right when the spin is thru).


1 Reply

Please log in or register to post a reply.

geon 101 Sep 07, 2005 at 22:27

I would just make a blurry mess with a “whirr” sound that is switched to a slightly wobbling symbol in a “pling” sound effect. If it sounds like moving you can get away with quite simple graphics. Really.

equation for wobble:
Final = SymbolRotation + (t - t*t)*WobbleSize
where 0<=t<=1