PDA

View Full Version : slot machine physics


coolgroupsdotcom
09-07-2005, 12:59 PM
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).

mike
http://www.coolgroups.com/

geon
09-07-2005, 04:27 PM
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