shogoki-vnz/CraftyBox2D — pull request #6 by solkar (2012-07-28 18:28:10+00:00)
Title: Add filter data to fixture definition

In order to get collision filtering I added maskBits, categoryBits and groupIndex to the fixture definition.

Usage example:

.box2d({
bodyType: 'dynamic',
density : 1.0,
friction : 2,
restitution : 0.2,
shape: shape,
//Filtering data
categoryBits: 0x0001,
maskBits: 0xfffd,
//groupIndex: 0,

})