-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add friction and restitution on penetration constraint solving #1277
Conversation
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1277 +/- ##
==========================================
- Coverage 36.27% 36.19% -0.08%
==========================================
Files 376 376
Lines 30851 30916 +65
==========================================
Hits 11191 11191
- Misses 19660 19725 +65 ☔ View full report in Codecov by Sentry. |
bf5b56a
to
f0628f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM! Thanks for working on this! I don't really understand the math, but codewise the only thing I have to point out is the magic number stuff
@fallenatlas please share your resources for the physics engine to ease reviewing. The math looks right, but i don't know if I'd catch errors without a reference |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very hard to review these extremely niche PRs, but lgtm
49215f6
to
62eeb7b
Compare
…ion when no tangent component exists and small code refactors
62eeb7b
to
9fb7ea3
Compare
Description
Note: I couldn't find how to apply restitution using accumulated impulses anywhere, which is ridiculous, so the implementation I have is based only on how Erin Catto does it in Box2D v3.0, which he says it's not the most accurate but it seems to work pretty well.
Checklist