-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fix skipped collisions between tiles #38
Comments
Try adding heuristics for the square tiles too, as absurd as it might seem. You'll probably need to allow returning the preferred separation axis from heuristics callbacks, to handle each edge case (literal edges... in this case... oh). |
Particle controls have just been implemented here, though, for testing issue #38.
Covered most cases, but edge cases include entering and exiting square tiles at diagonals. This isn't really the right solution, but it helps. We can wait for 0.3.0 for the real fix.
Covered most cases, but edge cases include entering and exiting square tiles at diagonals. This isn't really the right solution, but it helps. We can wait for 0.3.0 for the real fix. This will do for now. |
There's an issue with heuristics that skip collisions between tiles.
Small enough objects can slip between tiles, as seen here:
Reproduce and fix the hell out of it without touching SAT.js for the time being.
This is related to #36. Disabling heuristics fixes the issue so that's likely where the it lies.
The text was updated successfully, but these errors were encountered: