Reduces minimum speed of classic camera controller

Two blocks per second is still quite fast, so this commit reduces the minimum to
a tenth of that, allowing for much finer control.
This commit is contained in:
Jonas Herzig
2022-06-26 12:30:23 +02:00
parent 4f9a730b6d
commit a3f4049322

View File

@@ -9,7 +9,7 @@ import static net.minecraft.util.math.MathHelper.sin;
// TODO: Marius is responsible for this. Please, someone clean it up.
public class ClassicCameraController implements CameraController {
private static final double LOWER_SPEED = 2;
private static final double LOWER_SPEED = 0.2;
private static final double UPPER_SPEED = 20;
private static final double SPEED_CHANGE = (UPPER_SPEED - LOWER_SPEED) / 2000;