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

Bug: SAT collision detection fails on certain edge cases #22

Open
Jaysmito101 opened this issue Feb 11, 2023 · 0 comments
Open

Bug: SAT collision detection fails on certain edge cases #22

Jaysmito101 opened this issue Feb 11, 2023 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed jwoc medium

Comments

@Jaysmito101
Copy link
Owner

As the title suggests the SAT collision tests fails on certain close cases specially if the difference of size of 2 polygons is big.

Relevant functions:

bool CGL_sat_collision_overlap_on_axis(CGL_shape* a, CGL_shape* b, CGL_vec2 axis, float* overlap_amount);
bool CGL_sat_collision_detect(CGL_shape* a, CGL_shape* b, CGL_vec2* n_vector);
void CGL_sat_collision_calculate_axes(CGL_shape* shape, CGL_vec2* axes, CGL_int* axes_count);
@Jaysmito101 Jaysmito101 added bug Something isn't working help wanted Extra attention is needed medium jwoc labels Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed jwoc medium
Projects
None yet
Development

No branches or pull requests

1 participant