Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

I think the documentation on `physics.body.categories` is wrong

edited September 11 in Bugs Posts: 1,292

In my experiments, the range of numbers allowed in a physics body’s categories is 1 to 16.

The documentation says the range is 0 to 15.

0 seems to be ignored completely when you try to add it to a body’s categories, and any number over 16 seems to be automatically converted to 16… which is really odd behavior if you ask me, but I’m assuming it’s an artifact of Box2d’s code and not @John’s or @Simeon’s.

Tagged:

Comments

Sign In or Register to comment.