collision work

This commit is contained in:
2024-01-05 20:29:11 -06:00
parent c65a713bae
commit 67c474dbdf
3 changed files with 6 additions and 5 deletions
@@ -935,7 +935,7 @@ public class dbBuildingHandler extends dbHandlerBase {
float refZ = Float.parseFloat(rs.getString("ref").split(";")[1]);
Vector2f topLeft = new Vector2f(centerX - refX,centerZ - refZ);
Vector2f topLeft = new Vector2f(centerX - refX,centerZ + refZ);
float width = Math.abs(endX-refX);
float height = Math.abs(endZ-refZ);
Rectangle2D boundRect = new Rectangle2D.Float();