From 16d8631635381f995a5caf4e9159a716a62478a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Tue, 13 Apr 2021 20:50:28 +0200 Subject: [PATCH] test conflict --- core/src/sagittarius/model/Arrow.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/sagittarius/model/Arrow.java b/core/src/sagittarius/model/Arrow.java index 49da985..0fb656b 100644 --- a/core/src/sagittarius/model/Arrow.java +++ b/core/src/sagittarius/model/Arrow.java @@ -32,8 +32,7 @@ public class Arrow extends BaseActor { */ Arrow(float angle, float power, Player shooter) { super(); - this.setPosition(shooter.getX() + shooter.getWidth() * MathUtils.cosDeg(shooter.getRotation()), // TODO: possible to not do trigonometry ? - shooter.getY() + shooter.getWidth() * MathUtils.sinDeg(shooter.getRotation())); + this.setPosition(shooter.getX(), shooter.getY()); this.velocity = new Vector2(power, 0).setAngleDeg(angle); this.acceleration = new Vector2(); this.setOrigin(80, 2);