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

Optimize collision detection #16

Open
AMDmi3 opened this issue Nov 30, 2015 · 0 comments
Open

Optimize collision detection #16

AMDmi3 opened this issue Nov 30, 2015 · 0 comments

Comments

@AMDmi3
Copy link
Owner

AMDmi3 commented Nov 30, 2015

We only need to check collisions in the direction the player is moving, and only by the depth of his speed per frame. Loops in collision detection may be optimized in a way that they terminate after finding the first collision (order matters though).

@AMDmi3 AMDmi3 changed the title Optimized collision detection Optimize collision detection Nov 30, 2015
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