Textures in fixture and ignore collisions

General discussion about the R.U.B.E editor
Post Reply
Daboog
Posts: 22
Joined: Tue Jan 15, 2013 4:38 pm

Textures in fixture and ignore collisions

Post 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.
Image
How can made ignore collisions of other parts?

And next question, is it possible paint the figure texture?
blakey87
Posts: 28
Joined: Wed Jan 09, 2013 7:57 pm

Re: Textures in fixture and ignore collisions

Post by blakey87 »

Try setting the fixtures filter group index to -1
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: Textures in fixture and ignore collisions

Post 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
Daboog
Posts: 22
Joined: Tue Jan 15, 2013 4:38 pm

Re: Textures in fixture and ignore collisions

Post by Daboog »

Oh, thanks! I did it =) What about textures? Can I multiply texture within the confines of the fixture?
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: Textures in fixture and ignore collisions

Post 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.
Post Reply