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);