Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (769)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (855)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Pinball Flipper  (Read 3994 times)
0 Members and 1 Guest are viewing this topic.
Offline Valohtar

Junior Newbie

Java games rock!

« Posted 2004-10-28 18:49:13 »

I want to make a pinball type thing and long story short I need to make a flipper that will make the pinball realistically bounce off of it.  I also would assume the flipper should be static geometry since I don't want gravity affecting it. The problem is that the end of the flipper is moving faster should make it bounce more than the part that is moving slower. I'm not really quite sure how to do this or if it's even possible. Any help is appreciated,

Oh btw, what file formats should I use to create the model of the flipper? I have made an .obj file that was converted to .jme format, but the .jme doesn't seem to work. Maybe I'm doing something wrong...
Offline swpalmer

JGO Coder

Exp: 12 years

Where's the Kaboom?

« Reply #1 - Posted 2004-10-29 22:58:23 »

A friend and I have always had the idea in the back of our heads that we would like to port Visual Pinball to Java and use ODE to handle the physics on the playfield.  So I'm interested in whatever you come up with.

Offline Chman

Junior Devvie

Nothing more that... Java games are cool !

« Reply #2 - Posted 2004-10-29 23:20:18 »

I cannot answer your question, but to make a realistic flipper, you MUST have gravity, else the ball could stop in the middle of the board, which whould be a bit annoying, isn't it ?

You could make a search at the "Math & Physic" forum on, there are plainty of interesting topic on this subject Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline oNyx

JGO Coder

Medals: 2

pixels! :x

« Reply #3 - Posted 2004-10-30 20:02:22 »

Doing pinball simulations is actually pretty difficult. A year ago I would have said that it isn't *that* difficult, but now I can look at it from a different angle.

You have to understand vectors, planes, how to detect collison against various shapes(*), how to devide the space in spatial areas (for reducing the amount of collision checks), how to resolve a collision (eg projection), how to respond to collision, what an integrator is, and how to use em.

(* since it's about a ball colliding with something you can actually just check for point collisions against "fattened" shapes - however calculating this "fatting" isn't that easy, if you don't already know the math)

And that's just a short overview of the logical problems, which you'll have to solve; things you'll need to learn. And there are most likely other things which you would also need to learn for actually finishing that project.

So, as a first (somewhat bigger) game it's a pretty bad choice. If you can spend a lot of time on that project, you would still need at least 6 months for creating a usable/robust simulation (without anything else like graphics/sound/media).

Really. I mean it Smiley

Megabytes of articles to be read, dozens of little try-out-testing programms to be written... so many things you've to understand before you have all pieces for that puzzle. Sounds scary? Well, it is... but you can learn all those things in little steps, by reading an article about physics, programming a little simple game, testing things, writing a different little game (with another focus) and so on.

Well, I guess it's worth to keep making a pinball game as a long term-ish goal.

A rather ugly but informative page:

I'd played several pinball machines, but I hadn't noticed (back then) that they use "knockers" for producing a allmighty "THWACK!" sound. It's also pretty interesting to read how bumpers etc work Wink

弾幕 ☆ @mahonnaiseblog
Offline darkprophet

Senior Devvie

Go Go Gadget Arms

« Reply #4 - Posted 2004-10-30 20:11:18 »

the bumpers would be a dynamic joint. Or a static PhysicsObject (if you are using my jME-ODE binding) that has no mass. And you would simply update the PhysicsSystem to the whereabouts (i.e. location and rotation) of that static object and collisions should be solved good.


Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Offline Valohtar

Junior Newbie

Java games rock!

« Reply #5 - Posted 2004-10-30 22:45:28 »

Since I'm using ODE, the collision is pretty good although I'm moving a static object (the flipper) to collide with the sphere which causes a few bugs here and there where the flipper moves over top of the position of the sphere. I'm approximating the shape of the flipper with a rectangle, possibly adding a sphere on the end of it for more realism, but that's at a later date.

I only have roughly two months left to get this done and I don't want to waste my time on a project that can't be done in that time frame, but if I can find a way to set individual bounce properties for each object, then that will make the job quite a bit faster (providing I can fix my flipper bug). I'm probably not using the best method to animate the flipper, but it's the best I can come up with right now (just rotating the flipper about 10 degrees per update).

I'm not looking to make a really good simulation of a pinball machine, just probably the simplest pinball machine you've ever seen Tongue Nothing fancy.

Thanks for the replies,
Offline oNyx

JGO Coder

Medals: 2

pixels! :x

« Reply #6 - Posted 2004-10-31 10:46:53 »

>Since I'm using ODE

Ah... ok... well you could have said that earlier Tongue

弾幕 ☆ @mahonnaiseblog
Offline Valohtar

Junior Newbie

Java games rock!

« Reply #7 - Posted 2004-10-31 15:46:56 »

Sorry, should've mentioned that earlier.  :-/
Pages: [1]
  ignore  |  Print  

EgonOlsen (1578 views)
2018-06-10 19:43:48

EgonOlsen (1663 views)
2018-06-10 19:43:44

EgonOlsen (1150 views)
2018-06-10 19:43:20

DesertCoockie (1578 views)
2018-05-13 18:23:11

nelsongames (1178 views)
2018-04-24 18:15:36

nelsongames (1669 views)
2018-04-24 18:14:32

ivj94 (2427 views)
2018-03-24 14:47:39

ivj94 (1635 views)
2018-03-24 14:46:31

ivj94 (2727 views)
2018-03-24 14:43:53

Solater (889 views)
2018-03-17 05:04:08
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!