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

16 angular momentum and friction #48

Merged
merged 14 commits into from
Nov 8, 2023
Merged

16 angular momentum and friction #48

merged 14 commits into from
Nov 8, 2023

Conversation

mikhail-vlasenko
Copy link
Collaborator

@mikhail-vlasenko mikhail-vlasenko commented Oct 31, 2023

This pull request introduces a series of updates aimed at improving the collision resolution logic within the system. Below is a summary of the key changes:

Added

  • Implementation of angular momentum from impact in collision resolution.
  • Implementation of angular momentum from friction in collision resolution.
  • Plenty of new tests for collision resolution.
  • Some new tests for collision detection.

Fixed

  • Added ContactInfo class; contact point is now expected by the _resolve_collision method within ContactInfo.
  • Fixed velocities_away checks.

Improved

  • ExtraInfo is returned by collision resolution at the third position. It is useful for test and potentially elsewhere
  • Introduced a much of complex, but not randomized tests to further validate the robustness of the collision resolution.
  • Added pytest-check as a dependency, allowing the visibility of multiple failing asserts during test runs.
  • Docstrings
  • Corrected spelling in HomogeneousTransformer

…. automatically call update_transform() for body when needed. add tests for epa direction.
…for angular velocity that doesn't pass. add AnyBody. rename HomogeneousTransformer.
@mikhail-vlasenko
Copy link
Collaborator Author

im just gonna put the geogebra file here for the last test cause it takes time to imagine that one
bullet_test.zip zip cause .ggb isnt supported

Copy link
Collaborator Author

@mikhail-vlasenko mikhail-vlasenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

closes #16

cotix/_collision_resolution.py Show resolved Hide resolved
cotix/_collision_resolution.py Show resolved Hide resolved
@mikhail-vlasenko mikhail-vlasenko marked this pull request as ready for review November 6, 2023 12:06
@mikhail-vlasenko mikhail-vlasenko changed the title 16 angular momentum 16 angular momentum and friction Nov 6, 2023
Copy link
Member

@knyazer knyazer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@knyazer knyazer merged commit 64ee85c into main Nov 8, 2023
2 checks passed
@knyazer knyazer deleted the 16-angular-momentum branch November 8, 2023 19:34
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.

2 participants