Dim left_ball_to_flipper_angle Dim right_ball_to_flipper_angle
' Convert X, Y to angle. ' Need example? See Atn2Example. Function Atn2(x, y) If x > 0 Then Atn2 = Atn(y / x) * RadToDeg ElseIf x < 0 Then Atn2 = 180 - RadToDeg * Atn(y / -x) ElseIf y > 0 Then Atn2 = 90 Else Atn2 = -90 End If Atn2 = Atn2+90 End Function
Sub Atn2Example() AddDebugText Atn2( 0, -100) ' Up = 0 AddDebugText Atn2( 10, -100) AddDebugText Atn2( 100, -100) ' Up/Right = 45 AddDebugText Atn2( 100, -10) AddDebugText Atn2( 100, 0) ' Right = 90 AddDebugText Atn2( 100, 10) AddDebugText Atn2( 100, 100) ' Down/Right = 135 AddDebugText Atn2( 10, 100) AddDebugText Atn2( 0, 100) ' Down = 180 AddDebugText Atn2( -10, 100) AddDebugText Atn2( -100, 100) ' Down/Left = 225 AddDebugText Atn2( -100, 10) AddDebugText Atn2( -100, 0) ' Left = 270 AddDebugText Atn2( -100, -10) AddDebugText Atn2( -100, -100) ' Up/Left = 315 AddDebugText Atn2( -10, -100) End Sub ' Atn2Example ' <-- unrem this line to see Atn2 example
When ball is rolling backward along right flipper vector is 90 and with left it is 270. So have the prehit measure this and activate a flag that if active when you press flipper then dynamics are applied
No rapid finger coordination required!
Releasing flipper restores normal dynamics
ravarcade
Post subject: Re: BAM Dynamic Flipper Breakthrough !!
Posted: Tue Aug 21, 2018 5:45 pm
Joined: Mon Mar 25, 2013 4:02 pm Posts: 1034
I will give you another wild idea. If goal is to make flipper tap (very short button press or very short button release) why not try to use second flipper button? For example if you press LeftFlipper2Key it will execute: FuturePinball_KeyPress(LeftFlipperKey) wait_given_very_short_time FuturePinball_KeyRelease(LeftFlipperKey)
Please run this table in debug FP mode (F9). With keys 1 & 2 on numpad you can increase/decrease delay. With keys A and ' (default LeftFlipper2Key and RightFlipper2Key) you can make "TAP" with flippers. Also it will make quick-short-release-then-press if main flipper button is pressed.
In my tests one import thing become obvious: you need use flipper charts to make flipper rotation accelerated (slow at begin fast at end).
This is wird idea...
_________________ http://www.ravarcade.pl Better Arcade Mode current BAM version: v1.5-289, released: May 10, 2020
wild
Post subject: Re: BAM Dynamic Flipper Breakthrough !!
Posted: Tue Aug 21, 2018 7:15 pm
Joined: Sat Jan 29, 2011 4:54 pm Posts: 1434 Location: Italy
gimli wrote:
I will gladly explain it to you Paulo by email
thanks a lot Bob, I know that there is no other solution for me to understand if you do not explain it ..... you...for me now, it is very complicated to understand how it works, and above all the code, maybe I would not understand you at all ... I lost many steps, but thanks for your availability, I will always ask you by e-mail.
ravarcade wrote:
I will give you another wild idea.
excuse me if I do not understand much, rav, I tried this flipper tap.....in other words, and as a self-adjusting fins that one can adapt to one's table type?and... he always needs an xml file for physics?
Gimli
Post subject: Re: BAM Dynamic Flipper Breakthrough !!
Here is a composite of crazy ideas Flipper/magnet dynamics for Post Pass and Flipper tap up inlane and I added the regular Dynamic Flipper Code and bounce control
Thanks, Will look at this when I have time. Where did Rav post the left_ball_to_flipper_angle, that's what I have been looking for all week.
Something else: George was talking about post position as the most important thing, but actually, it also is very dependent on the angle of the flipper return lane as well. Some things are a lot easier to do on say Playboy while Flash Gordon has a far more severe angle that it's flipper lane has.
_________________
_____________________________________
Latest projects and rants at My Facebook Page _____________________________________
Latest Project: fpxEngine
GeorgeH
Post subject: Re: BAM Dynamic Flipper Breakthrough !!
Posted: Wed Aug 22, 2018 12:57 am
Joined: Thu Aug 16, 2012 11:12 pm Posts: 2781 Location: Arkansas, USA
I think you are right. The angle of the lanes is quite different on the Playboy and Flash Gordon tables. It looks like it would be more difficult to do a post pass on Flash Gordon than on Playboy although I haven't tried it.
I have tried to do a post pass on "Phantom of the Opera". It is possible but not easy. You have to let the ball roll down the flipper slightly from the cradled position and then press the flipper in order to make it work.
My point is that the physical arrangement of the post, flipper and inlane greatly affect how easy it is to do a post pass. The reason it looks easy in the videos of real tables on You Tube is because they have selected tables where it is easy to do it.
George
Gimli
Post subject: Re: BAM Dynamic Flipper Breakthrough !!
Something else: George was talking about post position as the most important thing, but actually, it also is very dependent on the angle of the flipper return lane as well. Some things are a lot easier to do on say Playboy while Flash Gordon has a far more severe angle that it's flipper lane has.
This of course is where dynamic magnet assist is useful as you can easily adjust the magnet push/pull angle and strength...
Gimli
Post subject: Re: BAM Dynamic Flipper Breakthrough !!
It is currently Fri Mar 05, 2021 2:46 am All times are UTC - 5 hours [ DST ]
Who is online
Users browsing this forum: No registered users and 83 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum