okaybenji / 100ng

100-player Pong #AGBIC 2016
https://okaybenji.itch.io/100ng
8 stars 9 forks source link

Ball can 'phase' through paddles once its velocity gets high enough #4

Open okaybenji opened 8 years ago

okaybenji commented 8 years ago

Probably need to solve this with predictive physics. Why has the server always thought the ball was within the paddle's y bounds when I used predictive physics? TRY: IF it's in the paddle this frame, bounce; ELSE IF it will be beyond the paddle next frame, bounce.

okaybenji commented 8 years ago

This will happen less often thanks to 055f62cd553af1d97378319427b27b056c66da86. Still need to add a max velocity property to the ball. There are also ways the prediction could be improved.