Skip to content
This repository has been archived by the owner on Mar 11, 2019. It is now read-only.

Cannot use :filter option with fixture-def #100

Open
the2bears opened this issue Jul 20, 2016 · 0 comments
Open

Cannot use :filter option with fixture-def #100

the2bears opened this issue Jul 20, 2016 · 0 comments

Comments

@the2bears
Copy link
Contributor

This is pretty minor, only needing a change documentation.

If the :filter option is used when creating a fixture-def, a java.lang.IllegalAccessError will be thrown, due to the fixture being final: https://github.com/libgdx/libgdx/blob/master/extensions/gdx-box2d/gdx-box2d/src/com/badlogic/gdx/physics/box2d/FixtureDef.java

Filters may be changed through filter! or by obtaining a reference to the filter from the fixture-def and setting the fields on the filter directly.

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

No branches or pull requests

1 participant