aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2018-02-03 18:13:17 +0100
committerpacien2018-02-03 18:13:17 +0100
commita5b47073e0042de6580d9c7bb045e579af22d26e (patch)
tree96d408bf17a9315fafeea24b6f0ba0e766f1a236
parentf759797ec3668ba8ba090e85c40ed26ea7ddbb1c (diff)
downloadwallj-a5b47073e0042de6580d9c7bb045e579af22d26e.tar.gz
Change hitboxes
Signed-off-by: pacien <pacien.trangirard@pacien.net>
-rw-r--r--src/main/java/fr/umlv/java/wallj/block/SolidDef.java6
1 files 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;
15public final class SolidDef { 15public final class SolidDef {
16 /** 16 /**
17 * @param bodyType type of body 17 * @param bodyType type of body
18 * @param pos initial position of the body 18 * @param pos initial position of the body
19 * @return a corresponding body definition 19 * @return a corresponding body definition
20 */ 20 */
21 public static BodyDef bodyDefOf(BodyType bodyType, Vec2 pos) { 21 public static BodyDef bodyDefOf(BodyType bodyType, Vec2 pos) {
@@ -41,7 +41,7 @@ public final class SolidDef {
41 */ 41 */
42 public static PolygonShape squareShape() { 42 public static PolygonShape squareShape() {
43 PolygonShape shape = new PolygonShape(); 43 PolygonShape shape = new PolygonShape();
44 shape.setAsBox(TileVec2.TILE_DIM, TileVec2.TILE_DIM); 44 shape.setAsBox(TileVec2.TILE_DIM / 2, TileVec2.TILE_DIM / 2);
45 return shape; 45 return shape;
46 } 46 }
47 47
@@ -50,7 +50,7 @@ public final class SolidDef {
50 */ 50 */
51 public static CircleShape circleShape() { 51 public static CircleShape circleShape() {
52 CircleShape shape = new CircleShape(); 52 CircleShape shape = new CircleShape();
53 shape.m_radius = TileVec2.TILE_DIM / 2; 53 shape.m_radius = TileVec2.TILE_DIM / 4;
54 return shape; 54 return shape;
55 } 55 }
56 56