GoPinball.com
http://gopinball.com/forum/

ACTION PIN MOBILE
http://gopinball.com/forum/viewtopic.php?f=82&t=10068
Page 3 of 3

Author:  HappyCab [ Sat May 04, 2019 9:41 am ]
Post subject:  Re: ACTION PIN MOBILE

Ok, I have construct the logic behind the balls disposal/regeneration.
Now when a ball touch the entry point of the flippers, a timer of one second activate a function to
bring the ball at a random location at the top.

See it in the link, first post.

Author:  Gimli [ Sat May 04, 2019 8:42 pm ]
Post subject:  Re: ACTION PIN MOBILE

You are a magician Steve !

Author:  TheNalex [ Sun May 05, 2019 5:35 am ]
Post subject:  Re: ACTION PIN MOBILE

It improves very well. You give me some ideas to try it with three.js / ammo.js... grrrr but I need time, time time !!!

Author:  backup [ Sun May 05, 2019 8:01 am ]
Post subject:  Re: ACTION PIN MOBILE

un pinball three.js : assez ancien pas trop optimisé mais "jouable". Permet surtout de voir le code source (non éditable sur le forum car + de 60000 caractères) , et servir comme exemple.

https://cwar.de/pinball/simpleball.html

exemple de physique avec ammo.js :
https://kripken.github.io/ammo.js/examples/webgl_demo_softbody_volume/index.html . j'ai jeté un œil sur le code source pour voir à quoi , il ressemblait...... :shock: :shock: 654 lignes digne de la NASA.... :lol: :lol: ,
l

exemple d'ume table (strike) : éditée par three.js

conjugué avec ammo.js , une tuerie......

un developpeur bresilien ayant déja une grosse experience des pinball java 2 et 3d (code source).

roller pinball (1984 msx) version java 3d :
https://github.com/leonardo-ono/JavaRollerBall3D

Author:  HappyCab [ Sun May 05, 2019 5:08 pm ]
Post subject:  Re: ACTION PIN MOBILE

Thx for all the data backup.

Script update for now, A lot of clean up. I have clamped velocity of the balls to a MAX speed of 20px per second. because sometime multiple collisions at the same time tend to build up speed and the balls were ejected out of the table.

Also left and right lane : invisible sensors now create friction so the balls are slowed down toward the flippers.

The text box on the right are just to monitor the velocity. @backup you can watch more data in the console.log.

Page 3 of 3 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/