🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #1000

Re: Software Pinball Machine

#1000
From: DAvid matiskella
Date: Thu, 05 Nov 1992 22:52
25 lines
2014 bytes
In article <1992Nov5.202313.7178@nntp.hut.fi>, jmunkki@vipunen.hut.fi (Juri
Munkki) wrote:
> 
> In article <1992Nov6.034457.11981@waikato.ac.nz> gford@waikato.ac.nz writes:
> >The ball is moving on a sloping table, (slope in y direction). The x component
> >of the velocity remains constant. And the y component  vy(t) = vy(t-1) + a
> >where a is a fraction of gravitational acceleration. 
> 
> I don't think that you can really realistically model a pinball without
> taking ball spin into account. Writing a less than perfect pinball program
> isn't hard, but making the collisions affect the ball spin can make things
> complicated.
> 
> -- 
>   Juri Munkki					       Windsurf: fast sailing
>  jmunkki@hut.fi					      Macintosh: fast software
	It shouldn't be that hard to create a pinball program. Just look in a any
physics book for the equations for consevation of momentum and the like. I
am not sure if you would have 
to take into account the friction of the ball on the surface or whether or
not it is neglible. The tough part should be figuring out how much energy
to add after hitting the ball with a flipper and the like. The way I would
set it up would to store to track the ball's energy and how direction and
moment. each "time" through you add the gravity and check to see if it
hit anything. 
Technical Details
Message-ID: <dmatiske-051192174412@archmacconsultant.architecture.lab.nd.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!hal.com!olivea!charnel!rat!usc!zaphod.mps.ohio-state.edu!sdd.hp.com!news.cs.indiana.edu!bsu-cs!news.nd.edu!archmacconsultant
References: <18899@ucdavis.ucdavis.edu> <Bx8H5G.Gt7@cs.vu.nl> <1992Nov6.034457.11981@waikato.ac.nz> <1992Nov5.202313.7178@nntp.hut.fi>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!hal.com!olivea!charnel!rat!usc!zaphod.mps.ohio-state.edu!sdd.hp.com!news.cs.indiana.edu!bsu-cs!news.nd.edu!archmacconsultant
From: dmatiske@nd.edu (DAvid matiskella)
Newsgroups: rec.games.programmer
Subject: Re: Software Pinball Machine
Message-ID: <dmatiske-051192174412@archmacconsultant.architecture.lab.nd.edu>
Date: 5 Nov 92 22:52:38 GMT
References: <18899@ucdavis.ucdavis.edu> <Bx8H5G.Gt7@cs.vu.nl> <1992Nov6.034457.11981@waikato.ac.nz> <1992Nov5.202313.7178@nntp.hut.fi>
Sender: news@news.nd.edu (USENET News System)
Followup-To: rec.games.programmer
Organization: University of Notre Dame
Lines: 25