tweaked ship positions

This commit is contained in:
Johannes Schmelz 2024-10-06 18:29:09 +02:00
parent a656ab5062
commit 50bee91775

View File

@ -25,7 +25,6 @@ import pp.battleship.model.Shot;
import static java.util.Objects.requireNonNull; import static java.util.Objects.requireNonNull;
import static pp.util.FloatMath.HALF_PI; import static pp.util.FloatMath.HALF_PI;
import static pp.util.FloatMath.PI; import static pp.util.FloatMath.PI;
import static pp.util.FloatMath.QUARTER_PI;
/** /**
* The {@code SeaSynchronizer} class is responsible for synchronizing the graphical * The {@code SeaSynchronizer} class is responsible for synchronizing the graphical
@ -241,7 +240,7 @@ class SeaSynchronizer extends ShipMapSynchronizer {
final Spatial model = app.getAssetManager().loadModel(BATTLE_MODEL); final Spatial model = app.getAssetManager().loadModel(BATTLE_MODEL);
model.rotate(-HALF_PI, calculateRotationAngle(ship.getRot()), 0f); model.rotate(-HALF_PI, calculateRotationAngle(ship.getRot()), 0f);
// model.move(0f, -0.05f, 0f); model.move(0f, -0.06f, 0f);
model.scale(0.27f); model.scale(0.27f);
model.setShadowMode(ShadowMode.CastAndReceive); model.setShadowMode(ShadowMode.CastAndReceive);