Closed Fxlr8 closed 6 years ago
I found that world's postBroadphase event is exactly what I need
here are the docs:
Fired after the Broadphase has collected collision pairs in the world. Inside the event handler, you can modify the pairs array as you like, to prevent collisions between objects that you don't want.
Awesome!
Hi, I am trying to make a game where units can collide only with units of their own team. The docs say:
What if I need more than 32 collision groups? Or is it possible to force collisions between two given objects? This could also solve my case. I would just manually enable collisions between the objects I want.
P.S thank you for a great lib