how can i create a bouncing ball ?
a7medo778
Member, PRO Posts: 119
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 ?
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
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
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
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