Creating collision filter flags in Box2Djs

Hi,

I haven't been able to find a b2Fixture / b2FixtureDef class in the version of Box2Djs I downloaded from http://box2d-js.sourceforge.net/index2.html.

Does anyone know how to set up filter flags without a Fixture?

Thanks,

Anthony
I've just noticed in the API documentation that b2Shape has m_CategoryBits and m_maskBits so I'll try to set those and see how I get on.

[UPDATE]

Got it working!

e.g.
Code:
    var ball = new b2CircleDef();
    ball.maskBits = 0x0002;
    ball.density = this.density;
    ball.radius = this.radius;
    ball.restitution = 0.5;
    ball.friction = 0.5;
    bodyDef.AddShape(ball);

Original thread: https://box2d.org/forum/viewtopic.php?t=6573