schteppe / p2.js

JavaScript 2D physics library
Other
2.64k stars 330 forks source link

How to disabledBodyCollision by tag/kind/group ? #276

Closed finscn closed 7 years ago

finscn commented 7 years ago

Now , there is only disabledBodyCollisionPairs But I have 2 groups bodies A & B , I hope any body in group A doesn't collides with group B. How to do that ?

I hope could disabledBodyCollision by tag ( a flag of body)

finscn commented 7 years ago

I see collisionGroup & collisionMask