how can i create a bouncing ball ?

a7medo778a7medo778 Member, PRO Posts: 119
edited November -1 in Working with GS (Mac)
hi there
i am trying to create a bouncing ball that bounces between 2 walls

here is what i did
placed the 3 walls ( buttom , right , left ) , added the ball @ x hight , added a downward acceleration to the ball , collide rule with all walls , and initial acceleration ( with timer for 1 ) to the right , the first couple bounces are fine but then it slows down and down , it collides to the right rebounds collides to the left and stop

any thoughts how i can do it ?

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    You can add restitution to the ball, that will make it more bouncier.

    Or if you want a continous speed the whole time set a max speed in the balls self attributes, and have a rule when the ball collides with the walls, change motion to max speed
  • jamesmunro2jamesmunro2 Member Posts: 130
    your ball is going to slow down. Just like a real ball doesn't keep going. adjust the physics, especially the drag and the density, friction, and restitution of each of the objects.
  • a7medo778a7medo778 Member, PRO Posts: 119
    i been playing with it with no use
    lemme try the restitution thingy

    i want it to keep bouncing at the same speed ( if it didnt get crunched into a smaller speed ) and constant altitude that equals the one it fell from
  • a7medo778a7medo778 Member, PRO Posts: 119
    mmmmmm still not able to do it :(
  • calvin9403calvin9403 Member Posts: 3,186
    maks an attribute that save you ball speed(not a good solution though)
  • a7medo778a7medo778 Member, PRO Posts: 119
    mmmmmm
    so the gravity downward acceleration is a must ( lets say 100 at 270 deg )

    now to start the ball moving lets say accelerate to the right at speed 100 for 1 sec

    now how can i retain the speed only with out the direction ?

    even if i saved it as an attribute
Sign In or Register to comment.