Skip to content

Instantly share code, notes, and snippets.

View AchrafAmil's full-sized avatar
🧑‍💻

Achraf AchrafAmil

🧑‍💻
View GitHub Profile
@AchrafAmil
AchrafAmil / BodyEditorLoader.java
Last active December 2, 2016 16:57 — forked from zudov/BodyEditorLoader.java
That is a version of loader for physic-body-editor that works with new JSON API from libgdx nightlies - Works with org.jbox2d instead of com.badlogic.gdx.physics.box2d
package aurelienribon.bodyeditor;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType;
import com.badlogic.gdx.math.Matrix4;
import org.jbox2d.collision.WorldManifold;
import org.jbox2d.collision.shapes.ChainShape;
import org.jbox2d.collision.shapes.CircleShape;