Hello,
I have been looking at the manual and the source to see how to set the collision filtering for 2.1.x.
FixtureDef.filter.groupIndex = -1;
Next I would SetFilterData, but from the manual, I'm not clear how that is done.
"Sometimes you might need to change collision filtering after a fixture has already been created. You can get and set the b2Filter structure on an existing fixture using b2Fixture::GetFilterData and b2Fixture::SetFilterData."
Ok, but b2Fixture is protected.. oh wait you mean b2Fixture* fixture??
It's not made clear to me how to SetFilterData from here..
Thanks.
I have been looking at the manual and the source to see how to set the collision filtering for 2.1.x.
FixtureDef.filter.groupIndex = -1;
Next I would SetFilterData, but from the manual, I'm not clear how that is done.
"Sometimes you might need to change collision filtering after a fixture has already been created. You can get and set the b2Filter structure on an existing fixture using b2Fixture::GetFilterData and b2Fixture::SetFilterData."
Ok, but b2Fixture is protected.. oh wait you mean b2Fixture* fixture??
It's not made clear to me how to SetFilterData from here..
Thanks.