From a5b47073e0042de6580d9c7bb045e579af22d26e Mon Sep 17 00:00:00 2001 From: pacien Date: Sat, 3 Feb 2018 18:13:17 +0100 Subject: Change hitboxes Signed-off-by: pacien --- src/main/java/fr/umlv/java/wallj/block/SolidDef.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/fr/umlv/java/wallj/block/SolidDef.java b/src/main/java/fr/umlv/java/wallj/block/SolidDef.java index 496c602..e4f4f36 100644 --- a/src/main/java/fr/umlv/java/wallj/block/SolidDef.java +++ b/src/main/java/fr/umlv/java/wallj/block/SolidDef.java @@ -15,7 +15,7 @@ import org.jbox2d.dynamics.FixtureDef; public final class SolidDef { /** * @param bodyType type of body - * @param pos initial position of the body + * @param pos initial position of the body * @return a corresponding body definition */ public static BodyDef bodyDefOf(BodyType bodyType, Vec2 pos) { @@ -41,7 +41,7 @@ public final class SolidDef { */ public static PolygonShape squareShape() { PolygonShape shape = new PolygonShape(); - shape.setAsBox(TileVec2.TILE_DIM, TileVec2.TILE_DIM); + shape.setAsBox(TileVec2.TILE_DIM / 2, TileVec2.TILE_DIM / 2); return shape; } @@ -50,7 +50,7 @@ public final class SolidDef { */ public static CircleShape circleShape() { CircleShape shape = new CircleShape(); - shape.m_radius = TileVec2.TILE_DIM / 2; + shape.m_radius = TileVec2.TILE_DIM / 4; return shape; } -- cgit v1.2.3