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

Resurrect circular cushion collisions #176

Merged
merged 31 commits into from
Jan 18, 2025
Merged

Conversation

ekiefl
Copy link
Owner

@ekiefl ekiefl commented Jan 5, 2025

No description provided.

Copy link
Owner Author

@ekiefl ekiefl left a 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.

Comment on lines -206 to -212
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

Copy link
Owner Author

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?

Copy link
Owner Author

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

Copy link
Owner Author

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

@ekiefl ekiefl merged commit 63c5567 into 3d Jan 18, 2025
1 check passed
@ekiefl ekiefl deleted the resurrect-circular-cushion-collisions branch January 18, 2025 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant