C20321456 / GE_Assignment

0 stars 0 forks source link

Ping pong ball #2

Open C20321456 opened 7 months ago

C20321456 commented 7 months ago

The ping ball can be picked up by the user and also reacts to the paddle when dropped on it. the problem is that the ball doesn't bounce so that means it won't be able to bounce from my side of the table to the opponents side of the table

C20321456 commented 7 months ago

The table was given a bounce functionality, see bounce.gd the bounce function allows the table's surface to have more bounciness. this partially fixes the issue since the ball can't have two scripts simultaneously. so the table having bounced was the solution. the exact bounce can be adjusted but giving it a 6.0 bounce seems to work, although a higher number would be issued, due to the fact the ball doesn't consistently bounce. will look more into how to make the ball constantly bounce off the surface of the table