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

Magnetic fields in BAM
http://www.gopinball.com/forum/viewtopic.php?f=86&t=6356
Page 2 of 3

Author:  ravarcade [ Wed Feb 08, 2017 7:20 pm ]
Post subject:  Re: Magnetic fields in BAM

franzleo wrote:
It all works wonderfully, but there is a small problem.
If the ball stays a long time in the magnet, it is implanted in the PF.
To have a little more strength in the magnet , I set :

MagneticField_Light.Strength = 30-50

Look at the photo
Greetings

Gianfranco

Well... this is just physics engine error.
I have idea how to prevent this, but i need few days.

Author:  blindpeser [ Thu Feb 09, 2017 5:33 pm ]
Post subject:  Re: Magnetic fields in BAM

This is fantastic stuff! Thank you Rafal and Bob!!

Not sure, if this is important for this table. But Theatre of Magic has a big magnet. This one should be producible now.

Author:  franzleo [ Fri Feb 10, 2017 10:09 pm ]
Post subject:  Re: Magnetic fields in BAM

ravarcade wrote:
......I have idea how to prevent this, but i need few days......


Thank you for taking the time to FP

Gianfranco

Author:  ravarcade [ Sun Feb 12, 2017 10:23 am ]
Post subject:  Re: Magnetic fields in BAM

franzleo wrote:
It all works wonderfully, but there is a small problem.
If the ball stays a long time in the magnet, it is implanted in the PF.
To have a little more strength in the magnet , I set :

MagneticField_Light.Strength = 30-50

Look at the photo
Greetings

Gianfranco

Today update of beta/BAM.dll.
I added Horizontal property. To prevent pushing ball inside playfield after magnetic-field creation add:
Code:
MagneticField_L.Horizontal = true

This Horizontal property can be read or set any time in code but is not visible in BAM-menu.

Author:  franzleo [ Mon Feb 13, 2017 3:08 pm ]
Post subject:  Re: Magnetic fields in BAM

ravarcade wrote:
.........Today update of beta/BAM.dll.........


Unfortunately with the new change there is another problem.
When the ball is captured by the magnet, it begins to vibrate faster and stops after a long time. This might be fine, but the vibration with splitting of the ball is too annoying.
Greetings

Gianfranco

Author:  ravarcade [ Mon Feb 13, 2017 6:25 pm ]
Post subject:  Re: Magnetic fields in BAM

franzleo wrote:
... the vibration with splitting of the ball is too annoying...

Roger. I will try to find another solution.

Author:  Gimli [ Tue Feb 14, 2017 11:02 am ]
Post subject:  Re: Magnetic fields in BAM

can you have the ball hover imperceptibly above playing field so it doesn't imbed ?

Author:  smoke [ Wed Feb 15, 2017 2:55 am ]
Post subject:  Re: Magnetic fields in BAM

finally true magnet in FP!

well done ravarcade!

Author:  ravarcade [ Thu Feb 16, 2017 6:20 pm ]
Post subject:  Re: Magnetic fields in BAM

Gimli wrote:
can you have the ball hover imperceptibly above playing field so it doesn't imbed ?

I tried. It breaks physics. Ball from time to time fall under playfield. It is too much interference in the physics simulation.

franzleo wrote:
ravarcade wrote:
...
When the ball is captured by the magnet, it begins to vibrate faster and stops after a long time...


Try this update:
http://www.ravarcade.pl/beta/BAM.dll
Now:
- don't use Horizontal param (or set it to false)
- instead set MaxForce. This will limit maximum force used to push ball to playfield.
You can also set it in BAM menu.
Code:
MagneticField_0.MaxForce = 10

If you set it to small value, like 0.1 it will work like Horizontal = true.
If you set it to big value, like 1000 it will work like first version of magnet_field.
... and you can set it to any value between 0 and 1000. Maybe this way you will get better results.

Author:  franzleo [ Fri Feb 17, 2017 2:48 pm ]
Post subject:  Re: Magnetic fields in BAM

ravarcade wrote:
...........Try this update.........


The ball is still vibrates (doubling) and gave too much bother to look at her.
I found a good compromise with these two values:
Strength = 10
MAXFORCE = 30
They can grow to 20 and 50
It depends on the force that we want to use. Now you will experience in the table on which I am working (Dragon's Keep). I'll let you know the news.
Greetings and thanks

Gianfranco

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