Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixtureDef.filter doesn't work #148

Open
GoogleCodeExporter opened this issue May 1, 2015 · 2 comments
Open

fixtureDef.filter doesn't work #148

GoogleCodeExporter opened this issue May 1, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
FixtureDef fixtureDef = new FixtureDef();
fixtureDef.density = 1;
fixtureDef.friction = 0;
fixtureDef.filter.groupIndex = -1;
fixtureDef.restitution = 1;
createDynamicBox(fixtureDef);

What is the expected output?
my game sprites don't collide with each other

What do you see instead?
they still collide

What version of Rokon are you using?
new trunk

On which version of Android are you experiencing this?
1.5

Please provide any additional information below.
It seems that fixtureDef.filter.groupIndex = -1, I have also used c++ box2d 
before, and I confrim that negative means never collide.
Then I have tried to set categoryBits and maskBits, it doesn't work either.

Original issue reported on code.google.com by [email protected] on 25 Aug 2010 at 9:53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant