-
Notifications
You must be signed in to change notification settings - Fork 41
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
Resurrect circular cushion collisions #176
Conversation
- Under new definition, any ball with non-zero z-velocity is airborne - Airborne ball can still have zero z-velocity (like at apex of trajectory)
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.
Main ideas:
- The quartic solver docstring is out of date. The necessity of bypass_non_quartics should be retested.
- final_ball_motion_state should be moved to physics core.
And of course, the cushion event prediction is still leaky.
v_z0 = rvw[1, 2] | ||
r_z0 = rvw[0, 2] | ||
|
||
if v_z0 < 0 and r_z0 == R: | ||
# Ball is on the table with negative velocity. | ||
return 0.0 | ||
|
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.
Does physics.get_airborne_time reliably return 0.0 in this scenario?
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.
Yes, this is tested in test_get_airborne_time
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.
final_ball_motion_state applied to han_2005 but not unrealistic
- Relative velocity is ill-defined for a ball not on the table, so don't calculate it at all.
No description provided.