Some questions about definitions [solved]

1) I have created a joint between two circular bodies. The joint is at the cetre of one of the circles and somewhere inside the other. Is it possible to move the joint's anchor location in real time (with the arrow keys for example) within the second body? Or do I need to make a third body that I will move and attach the anchor to?

2) Can I change the maskbits and categories of a body in real time? i.e. how do I change shapeDef properties on the fly?
1. Yup, why not?
2. Yup, but sometimes you'll have to call Refilter() (as far as I remember)
Ok, so how do I do said things?

edit: found out the first with "m_localAnchor1"
i.e. how do I use SetFilterData on a body?

This is working:

var filter:b2FilterData = new b2FilterData();
filter.maskBits = 0x0000;
filter.categoryBits = 0x0100;

actor.touchObject.body.GetShapeList().SetFilterData( filter );
m_world.Refilter( actor.touchObject.body.GetShapeList() );

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