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

[FEATURE] Optimize collision detection algorithm #941

Open
manucamejo opened this issue Sep 11, 2024 · 0 comments
Open

[FEATURE] Optimize collision detection algorithm #941

manucamejo opened this issue Sep 11, 2024 · 0 comments
Labels

Comments

@manucamejo
Copy link
Collaborator

manucamejo commented Sep 11, 2024

Currently we're checking if a player collided with every obstacle in the map, we should only check with obstacles that are close to the player for collision detection and resolution

Some possible solutions may be:

  • implement spatial hash grid to query close obstacles, we already have a first implementation of this in the repo in a branch called old
  • Implement quad trees with the same objective as hash grids → see quad trees video https://www.youtube.com/watch?v=sC8514mf0OA
@manucamejo manucamejo changed the title [FEATURE] Optimize collision detection - Quadtrees [FEATURE] Optimize collision detection Sep 11, 2024
@Nico-Sanchez Nico-Sanchez changed the title [FEATURE] Optimize collision detection [FEATURE] Optimize collision detection algorithm Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant