mirror of
https://github.com/Noratrieb/Java2DGame.git
synced 2026-01-14 14:05:01 +01:00
package structure
This commit is contained in:
parent
b530a5d3a5
commit
3f719e573a
16 changed files with 19 additions and 21 deletions
|
|
@ -3,7 +3,7 @@ package objects.ships;
|
|||
import core.math.Coords;
|
||||
import core.math.ExMath;
|
||||
import core.math.Vector2D;
|
||||
import objects.core.GameObject;
|
||||
import core.objects.core.GameObject;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
|
|
@ -83,7 +83,6 @@ public class Turret extends GameObject {
|
|||
|
||||
//TODO getCenter uses the wrong size
|
||||
Vector2D center = battleShip.getMapCoords(getCenterPosition(position));
|
||||
System.out.println(getCenterPosition(position));
|
||||
master.debugPos(battleShip.getMapCoords(position));
|
||||
master.debugPos(center);
|
||||
double targetRotation = -Math.atan2(center.x - mouseRel.x, center.y - mouseRel.y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue