Increase general speed of VanillaCameraController

This commit is contained in:
johni0702
2015-11-07 22:25:41 +01:00
parent fb5cf01b7f
commit b2a9496d8f

View File

@@ -54,8 +54,8 @@ public class VanillaCameraController implements CameraController {
direction.x * yawSin + direction.z * yawCos
);
// Adjust for current speed
// We transform speed to blocks per second: x->2^(x/300)
direction.mul(Math.pow(2, speed / 300d));
// We transform speed to blocks per second: x->2^(x/300+1)
direction.mul(Math.pow(2, speed / 300d + 1));
// Adjust for time passed
direction.mul(partialTicksPassed / 20);
// Actually move