test conflict
This commit is contained in:
parent
41a997b1d0
commit
16d8631635
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue