fix: Trajectory prediction is BACK !::
This commit is contained in:
parent
1d887cad5c
commit
59a3cfe85b
|
@ -104,13 +104,6 @@ public class Arrow extends Actor {
|
|||
this.velocity.y += dt * ( this.acceleration.y + this.force.y ) / 2;
|
||||
}
|
||||
|
||||
// ---------- GRAPHICAL METHODs ----------
|
||||
|
||||
public void render(ShapeRenderer shapeRenderer) {
|
||||
// Vector2 tail = new Vector2(-this.length, 0).rotateDeg(this.getRotation()).add(this.position);
|
||||
// shapeRenderer.line(this.getX(), this.getY(), tail.x, tail.y);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void draw(Batch batch, float parentAlpha) {
|
||||
super.draw(batch, parentAlpha);
|
||||
|
|
|
@ -74,18 +74,13 @@ class Bow extends Actor {
|
|||
super.drawDebug(shapes);
|
||||
if (pressed) {
|
||||
shapes.line(this.anchor, GameScreen.worldCursor);
|
||||
if (aimAssist) {
|
||||
float[] traj = Arrow.traj(angle, power, shooter, 400, 0.05f);
|
||||
if (traj.length > 2) {
|
||||
shapes.polyline(traj);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// void render(ShapeRenderer shapeRenderer) {
|
||||
// if (pressed) {
|
||||
// if (aimAssist) {
|
||||
// float[] traj = Arrow.traj(angle, power, shooter, 400, 0.05f);
|
||||
// if (traj.length > 2) {
|
||||
// shapeRenderer.polyline(traj);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue