Page 1 of 1
Textures in fixture and ignore collisions
Posted: Mon Mar 04, 2013 10:27 am
by Daboog
Hi!
I have some problem with back side of my actor... I added joint on two legs but other part of legs is collide.

How can made ignore collisions of other parts?
And next question, is it possible paint the figure texture?
Re: Textures in fixture and ignore collisions
Posted: Mon Mar 04, 2013 10:59 pm
by blakey87
Try setting the fixtures filter group index to -1
Re: Textures in fixture and ignore collisions
Posted: Tue Mar 05, 2013 6:01 am
by iforce2d
You can set the collision filter (category bits and mask bits) of the fixtures so that they have no bits in common. This is not a trivial setting really, so you might like to read a full example of how these settings are used:
http://www.iforce2d.net/b2dtut/collision-filtering
Re: Textures in fixture and ignore collisions
Posted: Tue Mar 05, 2013 9:58 am
by Daboog
Oh, thanks! I did it =) What about textures? Can I multiply texture within the confines of the fixture?
Re: Textures in fixture and ignore collisions
Posted: Tue Mar 05, 2013 10:22 am
by iforce2d
You can make a polygon shape to follow the outline of your texture as shown in this video:
http://www.youtube.com/watch?v=ufoDZFYDpZc
There is no way to do it automatically yet.