oakes / play-clj

A Clojure game library
The Unlicense
939 stars 73 forks source link

Cannot use :filter option with fixture-def #100

Open the2bears opened 8 years ago

the2bears commented 8 years ago

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.