Closed noih closed 6 months ago
Based on the concept of specifying interact
rather than just being in the same group, naming the checking function canInteract
or checkInteract
is more appropriate.
this is sweet thanks again!! @noih
but I'd like to also create some kind of util/function for
(BodyGroup.Ellipse << 16) | BodyGroup.Ellipse;
this (SOMEGROUP1 << 16) | SOMEGROUP2 could have some function cause I dont believe this is clear
thx !!!
can u suggest something?
I added a groupBits utility function. Hopefully that is helpful.
I added a groupBits utility function. Hopefully that is helpful.
this is I think what I meant
The interactive group is set by the users and should not be assumed to always interact with the same group. For example, a circle can also collide with a rectangle, but they still belong to different groups.
Stress testing is set to the same group only for testing purposes.
Here are two links for reference: Box2d Doc Box2D Tutorial: Collision filtering