Conversation
WalkthroughThe changes introduce Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #256 +/- ##
==========================================
+ Coverage 44.22% 45.34% +1.12%
==========================================
Files 127 144 +17
Lines 8554 10111 +1557
==========================================
+ Hits 3783 4585 +802
- Misses 4771 5526 +755
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
derek-mcblane
left a comment
There was a problem hiding this comment.
I'm excited to see this model made the default!
| """Resolve a collinear compliant frictional inelastic collision. | ||
|
|
||
| Computes the post-collision tangential and normal velocities for a sphere | ||
| colliding with a half-space, accounting for friction, compliance (spring-like |
There was a problem hiding this comment.
This is actually general enough to do any two-body planar collinear collision. The beta_t and beta_n arguments come from the moments of inertia for the two bodies.
| mu=ball.params.f_c, | ||
| e_n=ball.params.e_c, | ||
| k_n=1e3, | ||
| k_n=1e3, # arbitrary: collision outcome depends only on omega_ratio, not k_n. |
There was a problem hiding this comment.
Just a small note: if we ever want to use the spring deformation to approximate cushion deformation and duration, this parameter affects that duration.
derek-mcblane
left a comment
There was a problem hiding this comment.
Requesting the docstring I commented on be updated: https://github.com/ekiefl/pooltool/pull/256/changes#r2751953260
omega_ratioas a model parameterSummary by CodeRabbit
Chores
New Features
Refactor
✏️ Tip: You can customize this high-level summary in your review settings.