-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
refactor collide
code
#4485
refactor collide
code
#4485
Conversation
bug fix + refactor. Closes bevyengine#4478
Cool to see this function getting some tests. With the refactor in the same commit, it's difficult to understand what the fix is. Could you split that up, perhaps? |
@rparrett that's exactly why I have put it in draft... Someone fixed it already 😬 here's their PR: #2489. I noticed it when I was reviewing my changes. So this is only a refactor now, with the addition of I also added a sentence to the documentation about the meaning of |
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.
Those diagrams are great. I love this.
@alice-i-cecile is this post relicencing? Can we somehow resolve conflicts and incorporate this? Seems like a good, "low hanging fruit", addition. cc @dbofmmbt |
Yep, this is post relicensing :) Agreed on the adoption. |
Adopted in the PR linked above. |
# Objective - Refactor collide code and add tests. ## Solution - Rebase the changes made in #4485. Co-authored-by: Eduardo Canellas de Oliveira <eduardo.canellas@bemobi.com>
Just a refactor.
Objective
Improve
collide
code.Changelog
The code was refactored and tests were added.
Added
Collision
now implementsPartialEq
.I needed to add this trait impl to be able to test
collide
, hope you don't mind.