You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once #3730 is merged, we should represent the ball as a circle, rather than a square. We can probably stick with the AABB collision though for simplicity.
I have a feeling that in practice, not doing proper circle-aabb collision would end up looking pretty janky, but I'd personally love to see that if it doesn't complicate the example too much.
Hi, I'm trying to make a (modified) billiards game and need to detect to collision between balls. I was wondering if there already exists an implementation within bevy or whether I should make my own (and if its good/suitable enough I can contribute it back to bevy?). I've never contributed before so I'm not sure how this works. Thank you!
Activity
rparrett commentedon Mar 24, 2022
I have a feeling that in practice, not doing proper circle-aabb collision would end up looking pretty janky, but I'd personally love to see that if it doesn't complicate the example too much.
mockersf commentedon Mar 27, 2022
as a side note, this could already be done by using a round image, like https://github.com/bevyengine/bevy/blob/main/assets/branding/icon.png
alice-i-cecile commentedon May 5, 2022
#3730 is merged so this is now quite easy :)
tkgalk commentedon Aug 11, 2022
I made a PR pretty much exactly the same as the #4682, if there is no answer from the creator of that PR, I can submit mine if you wish.
alice-i-cecile commentedon Aug 11, 2022
Yes please @galkowskit :) Just link to the other PR and we'll credit you both.
tkgalk commentedon Aug 11, 2022
#5657
rparrett commentedon Aug 11, 2022
So the obvious collision "corner case" is this sort of thing:
corner-case-heh.mov
We could
I have a slight preference for 2 but it seems like fixing the collision code would be sort of involved, so I suppose I don't really mind 1.
tkgalk commentedon Aug 11, 2022
I think it also touches the physics issue. There is a very rudimentary code for reflections.
Use circle for breakout example (#5657)
Use circle for breakout example (bevyengine#5657)
Use circle for breakout example (bevyengine#5657)
Use circle for breakout example (bevyengine#5657)
AlexBrodbelt commentedon May 15, 2023
Hi, I'm trying to make a (modified) billiards game and need to detect to collision between balls. I was wondering if there already exists an implementation within bevy or whether I should make my own (and if its good/suitable enough I can contribute it back to bevy?). I've never contributed before so I'm not sure how this works. Thank you!
mockersf commentedon May 15, 2023
Bevy currently only has Axis Aligned Bounding Box for collisions, which probably wouldn't work very well for billiard