Jump to content


- - - - -

slot machine physics


1 reply to this topic

#1 coolgroupsdotcom

    New Member

  • Members
  • PipPip
  • 16 posts

Posted 07 September 2005 - 06: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/

#2 geon

    Senior Member

  • Members
  • PipPipPipPip
  • 939 posts

Posted 07 September 2005 - 10: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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users