schteppe / p2.js

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

Inaccurate statement in collision filtering wiki? #250

Closed danneu closed 8 years ago

danneu commented 8 years ago

The collision filtering wiki says:

In JavaScript, you can use 32 valid groups (Math.pow(2,0) up to Math.pow(2,31)). However, group Math.pow(2,0) won't collide with any other shape group, and group Math.pow(2,31) will collide with all other groups.

Doesn't it mean to say that -1 (all 1 bits) will collide with all other masks?

schteppe commented 8 years ago

Hmm, yes that is true. Will update. Thanks.