System.out.println("synchronize");
for(NetworkShip ship:enemies) {
if(ship.id.equalsIgnoreCase(obj.getString("player"))) {
System.out.println("synchronize " + ship.id);
Vector2 networkPos = new Vector2((float) obj.getJSONObject("message").getDouble("positionx"),(float) obj.getJSONObject("message").getDouble("positiony"));
if(networkPos.dst(ship.body.getPosition())>1) {
gameSession.networkUpdates.add(new UpdatePackage(ship, networkPos, (float)obj.getJSONObject("message").getDouble("angle")));
} else {
networkPos.sub(ship.body.getPosition());
Vector2 newPos = ship.body.getPosition().tmp().add(networkPos.mul(0.1f));
gameSession.networkUpdates.add(new UpdatePackage(ship, newPos, (float)obj.getJSONObject("message").getDouble("angle")));