Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continuous collision detection #1

Open
mkhan45 opened this issue Dec 18, 2022 · 1 comment
Open

Continuous collision detection #1

mkhan45 opened this issue Dec 18, 2022 · 1 comment

Comments

@mkhan45
Copy link
Owner

mkhan45 commented Dec 18, 2022

If the ball goes fast enough, it wont hit the paddles.

This can be fixed by checking if a paddle lies between the ball's start and end positions during a frame. Also have to calculate the position of the ball at the time of collision.

While we're at it integration should also use delta

@mkhan45
Copy link
Owner Author

mkhan45 commented Dec 19, 2022

it will still break down if it can go fast enough to bounce between paddles in a single tick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant