BAM BAM Set Velocity Demystified ?

Therefore, according to my understanding at the level of intelligence, but not at the mathematical or physical level, I understand (in theory) that: using the concept of right angles (your illumination), and applying it to the magical code, you have total control of: ball, cue and cue ball?......practically like a real billiards?
2. Plunger and flipper and kicker boosts where the ball is already in motion, we simply stay with the left side of the equations
BAM already monitors these values so we can just plug them in ....
ball.SetVelocity Velocity.x, Velocity.y, 0
So if you want to boost the ball by a factor of two, it is very simple:
ball.SetVelocity 2*Velocity.x, 2*Velocity.y, 0

This is the part that I try to understand better, it seems to hit something with my kicker demo which I added the "boost" ..... right?
but that for some reason didn't work
 
Last edited:
Therefore, according to my understanding at the level of intelligence, but not at the mathematical or physical level, I understand (in theory) that: using the concept of right angles (your illumination), and applying it to the magical code, you have total control of: ball, cue and cue ball?......practically like a real billiards?

This is the part that I try to understand better, it seems to hit something with my kicker demo which I added the "boost" ..... right?
but that for some reason didn't work
Ok I will have a look but I should mention in advance that special code may be required during multi ball so that the new code doesn’t get applied to every ball on the table ?
 
Ok I will have a look but I should mention in advance that special code may be required during multi ball so that the new code doesn’t get applied to every ball on the table
but on billiards, it's not a multiball, of course how do I mean it? or yes?I, due to the black textures, have never been able to try it as I should.....the your billiards
 
If you don't want to keep remembering when to use the minus sign just enclosure the whole equation in abs(_equation_here_) - not sure if it is more efficient thought.

I'm just saying because it's the same with the right flipper as the movement is also inverted. Surely there's more stuff but the point is, if unsure or when using something that requires up/down or left/right usage and this is at least a safe way to avoid problems.
 
So.... I've been in the process of removing all RetroFlair 2 content from Silent Hill over the last few days. Surprisingly, deleting every texture (one at a time in FP) from the many animations didn't take that long.

For the portals on Silent Hill, I decided to take the time to use this new position / velocity feature of BAM, to replace my previous hidden kicker / cover / magnet (all over the playfield) method.

The new feature was very easy to add in and make it work!

Now I can create a portal / opening / gate dynamically anywhere if I wanted.... and then redirect the ball to a hidden kicker (under the apron, etc) if I need to destroy it.

It's nice that smoke's ball rolling and pup SSF ball rolling methods both work when the ball gets redirected.



Nothing fancy... just 2 commands like this to shoot the ball out of a portal:

xBAM.Ball.SetPosition 425, 562, 60
xBAM.Ball.SetVelocity -700, 700, 0


...and using a trigger in the orbit to redirect the ball to the hidden kicker in the apron when I need to destroy it.

xBAM.Ball.SetPosition Orbit_Left_Kicker.x, Orbit_Left_Kicker.y, 0
xBAM.Ball.SetVelocity 0, 0, 0

....and I didn't even need to know SO CA TO AH :)


The portals looks the same as what you saw in the prior preview video.

 
Last edited:
Seems a lot easier to mage that way and avoids more objects on the table.
Neat idea.
 
So.... I've been in the process of removing all RetroFlair 2 content from Silent Hill over the last few days. Surprisingly, deleting every texture (one at a time in FP) from the many animations didn't take that long.

For the portals on Silent Hill, I decided to take the time to use this new position / velocity feature of BAM, to replace my previous hidden kicker / cover / magnet (all over the playfield) method.

The new feature was very easy to add in and make it work!

Now I can create a portal / opening / gate dynamically anywhere if I wanted.... and then redirect the ball to a hidden kicker (under the apron, etc) if I need to destroy it.

It's nice that smoke's ball rolling and pup SSF ball rolling methods both work when the ball gets redirected.



Nothing fancy... just 2 commands like this to shoot the ball out of a portal:

xBAM.Ball.SetPosition 425, 562, 60
xBAM.Ball.SetVelocity -700, 700, 0
Ya this code is so cool !
I am guessing this moves ball 45 degrees (225 degrees of "trajectory" according to my Trajectory Circle above) toward the bottom left corner

In code below "number" , you can choose any number you wish but it must be the SAME number used throughout the code.
Changing the number of course will change the overall velocity...
So for simple velocity in 45 degree increments we can have:

1. Top Left
xBAM.Ball.SetVelocity -number, -number, 0

2. Top Right
xBAM.Ball.SetVelocity number, -number, 0

3.Bottom right
xBAM.Ball.SetVelocity number, number, 0

4.Bottom Left
xBAM.Ball.SetVelocity -number, number, 0

And for simple velocitiy at 90 degrees increments:

1.Straight up table
xBAM.Ball.SetVelocity 0, -number, 0

2. To the Right 90 degrees
xBAM.Ball.SetVelocity number, 0, 0

3.Straight down table toward you
xBAM.Ball.SetVelocity 0, number, 0

4.To the Left 90 degrees
xBAM.Ball.SetVelocity -number, 0, 0



...and using a trigger in the orbit to redirect the ball to the hidden kicker in the apron when I need to destroy it.

xBAM.Ball.SetPosition Orbit_Left_Kicker.x, Orbit_Left_Kicker.y, 0
xBAM.Ball.SetVelocity 0, 0, 0
xBAM.Ball.SetVelocity 0, 0, 0
this should stop the ball ?

....and I didn't even need to know SO CA TO AH :)
True but now that we do, we are totally complete human beings :trippy:
The portals looks the same as what you saw in the prior preview video.

Very Cool Stuff Terry !
 
Last edited:
@Gimli

xBAM.Ball.SetVelocity 0, 0, 0
this should stop the ball ?


Yes, this is used when I relocate the ball when it travels up the covered left orbit (for specific events only), and then plop it onto a hidden kicker elsewhere. Stops the ball and drops it in position.
 
I just read this topic... It make me think of nfozzy physics for Visual Pinball, which consist making velocity correction, and by the way, aiming correction from flipper shoot..
If i understand right, it could be possible to make correction for X velocity when you shoot the ball, i'am right?
 
I just read this topic... It make me think of nfozzy physics for Visual Pinball, which consist making velocity correction, and by the way, aiming correction from flipper shoot..
If i understand right, it could be possible to make correction for X velocity when you shoot the ball, i'am right?
I think you could try that yes
 
General chit-chat
Help Users
You can interact with the ChatGPT Bot in any Chat Room and there is a dedicated room. The command is /ai followed by a space and then your ? or inquiry.
ie: /ai What is a EM Pinball Machine?
  • No one is chatting at the moment.
  • Free Bally! @ Free Bally!:
    Do you know Fleet Foxes?
    Quote
  • Quote
  • Free Bally! @ Free Bally!:
    never forget 'em after this tune
    Quote
  • JonPurpleHaze @ JonPurpleHaze:
    (AI prompt) describe the band Fleet Foxes
    Quote
  • ChatGPT @ ChatGPT:
    @JonPurpleHaze, Fleet Foxes are an American indie folk band formed in Seattle, Washington in 2006. The band is known for their lush harmonies, intricate arrangements, and poetic lyrics. Their music draws on a wide range of influences, including folk, rock, and baroque pop.

    The band's sound is characterized by intricate vocal harmonies, acoustic guitars, and a variety of other instruments such as mandolin, piano, and various percussion. Their lyrics often explore themes of nature, spirituality, and the passage of time.

    Fleet Foxes gained critical acclaim with their self-titled debut album in 2008, which was followed by the equally well-received albums "Helplessness Blues" in 2011 and "Crack-Up" in 2017. The band has developed a dedicated fanbase and continues to be praised for their unique sound and songwriting abilities.
    Quote
  • JonPurpleHaze @ JonPurpleHaze:
    (AI prompt) Helplessness Blues lyrics by Fleet Foxes
    Quote
  • ChatGPT @ ChatGPT:
    @JonPurpleHaze, I was raised up believing I was somehow unique
    Like a snowflake distinct among snowflakes, unique in each way you can see
    And
    Quote
  • JonPurpleHaze @ JonPurpleHaze:
    ai coulda summed it up: — superb 3rd-wave folkrock :headphones:
    Quote
  • Free Bally! @ Free Bally!:
    yeah wow, that Fleet Foxes tune is a trip?
    Quote
  • Free Bally! @ Free Bally!:
    gangly guitars
    Quote
  • JonPurpleHaze @ JonPurpleHaze:
    Liked it, nice shows!
    Quote
  • JonPurpleHaze @ JonPurpleHaze:
    Have to learn to listen afterwards..
    Quote
  • Chat Bot Mibs Chat Bot Mibs:
    JonPurpleHaze rolls 2d6 and gets 10.
  • Free Bally! @ Free Bally!:
    thanks! well, next thing i'm looking for is songs about nursery rhymes
    • Like
    Reactions: JonPurpleHaze
    Quote
  • Quote
  • JonPurpleHaze @ JonPurpleHaze:
    (AI prompt) adult nursery rhymes songs
    Quote
  • ChatGPT @ ChatGPT:
    @JonPurpleHaze, 1. "Old MacDonald Had a Farm" - updated for adults with humorous lyrics about farm life and animal sounds.

    2. "Twinkle, Twinkle, Little Star" - a more mature version with deeper meaning and reflection on the beauty of the night sky.

    3. "The Wheels on the Bus" - a fun and funky remix for adults, with a catchy beat and new verses about the daily commute.

    4. "Row, Row, Row Your Boat" - a revamped version with lyrics about navigating the ups and downs of adult life.

    5. "Mary Had a Little Lamb" - a grown-up twist on the classic nursery rhyme, exploring themes of friendship and loyalty.

    6. "Humpty Dumpty" - a modern retelling of the tale of Humpty Dumpty, with a focus on resilience and overcoming obstacles.

    7. "Hickory Dickory Dock" - a jazzy rendition of the traditional nursery rhyme, with a swingin' beat and updated lyrics.

    Quote
  • Free Bally! @ Free Bally!:
    haha, but WHO does those songs?
    • Like
    Reactions: JonPurpleHaze
    Quote
  • JonPurpleHaze @ JonPurpleHaze:
    (AI prompt) bands that do adult nursery rhymes songs
    Quote
  • ChatGPT @ ChatGPT:
    @JonPurpleHaze, 1. The Wiggles - Known for their catchy and playful songs for children, The Wiggles have also released adult versions of nursery rhymes with a humorous twist.

    2. Rockabye Baby! - This series of albums feature lullaby renditions of popular rock and pop songs, including nursery rhymes, that are perfect for both children and adults to enjoy.

    3. The Nursery Rhymes - A band that specializes in creating modern and edgy versions of classic nursery rhymes, appealing to both kids and adults with their catchy tunes.

    4. The Mother Goose Band - Combining elements of rock, folk, and pop music, The Mother Goose Band puts a unique spin on traditional nursery rhymes, making them fun and entertaining for listeners of all ages.

    5. The Nursery Rhyme Rebels - This band takes nursery rhymes to a whole new level with their edgy and adult-themed versions, adding a modern twist to these timeless classics.
    Quote
  • Quote
  • Free Bally! @ Free Bally!:
    Well anywhop, not getting paid this week means i have to tend to a cascade of unpaid bills, better get to it. Good chattin this week, have a beaut of a weekend!
    • Like
    Reactions: JonPurpleHaze
    Quote
  • Chat Bot Mibs Chat Bot Mibs:
    Free Bally! has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Block has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    toddmanb has left the room.
      Chat Bot Mibs Chat Bot Mibs: toddmanb has left the room.
      Back
      Top