Skip to content

Instantly share code, notes, and snippets.

@ahaeger
ahaeger / BodyEditorLoader.java
Last active Oct 14, 2018 — forked from zudov/BodyEditorLoader.java
Fix for BodyEditorLoader.java as of changes to libGDX's Vector2 API on Mar 6, 2013 (https://github.com/libgdx/libgdx/commit/fef9fc35a720ddc6b13901aaaa64113d8973c1ff).
View BodyEditorLoader.java
package aurelienribon.bodyeditor;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.physics.box2d.CircleShape;
import com.badlogic.gdx.physics.box2d.FixtureDef;
import com.badlogic.gdx.physics.box2d.PolygonShape;
import com.badlogic.gdx.utils.JsonReader;
import com.badlogic.gdx.utils.JsonValue;