From ba03f5c269639b077835b13b15f0d65c14328ea4 Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Thu, 7 Nov 2019 13:58:15 -0800 Subject: [PATCH] Defined a custom BBox for waypoint pads to be more squared with tiles and slightly larger --- core/src/com/riiablo/engine/Engine.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/src/com/riiablo/engine/Engine.java b/core/src/com/riiablo/engine/Engine.java index a168e6e9..e12b34c2 100644 --- a/core/src/com/riiablo/engine/Engine.java +++ b/core/src/com/riiablo/engine/Engine.java @@ -162,7 +162,15 @@ public class Engine extends PooledEngine { } BBoxComponent boxComponent = createComponent(BBoxComponent.class); - if (animationComponent != null) { + if (base.SubClass == 64) { + BBox box = boxComponent.box = new BBox(); + box.xMin = -70; + box.yMin = -30; + box.xMax = -box.xMin; + box.yMax = -box.yMin; + box.width = Math.abs(2 * box.xMin); + box.height = Math.abs(2 * box.yMin); + } else if (animationComponent != null) { boxComponent.box = animationComponent.animation.getBox(); }