ravarcade
Pinball Wizard
- Joined
- Feb 8, 2020
- Messages
- 101
- Reaction score
- 232
- Points
- 49
- Favorite Pinball Machine
- AFM
1. xBAM.Physics.SetBallMaterial elasticCoef, softnessCoef, staticFriction, kineticFriction
You change material for ALL balls for ball-vs-ball collisions.
2. FlipperName_Hit() subroutine
If you have LeftFlipper, RightFlipper, MiddleFlipper and want to know when flipper is hit, just write subroutines:
Code:
Sub LeftFlipper_Hit()
End Sub
Sub RightFlipper_Hit()
End Sub
Sub MiddleFlipper_Hit()
End Sub
There is one difference. You can add param to subroutine:
Code:
Sub LeftFlipper_Hit(normalizedballSpeed)
End Sub
3. "per flipper" rotation charts
- FlipperExt.SetRotChart(string)
samples:
Code:
RightFlipperExt.SetRotChart("{0.0,0.0},{1000.0,100.0}[0.0,100.0]")
LeftFlipperExt.SetRotChart("{0.0,100.0}[0.0,0.0],[1000.0,100.0]")
Between '{' '}' params for flipper button pressed, between '[' & ']' values for button released.
Processing text is slow, so use it only at table start or change of setting, but never in preHit event.
- xBAM.CreateRotChart(string) -> int
Same params as previous it returns ID of new chart. That chart is not applied to any flipper at this moment.
- FlipperExt.SetRotChart(int)
Argument is value returned from xBAM.CreateRotChart.
This SetRotChart is fast, so you can use it time.