Increase general speed of VanillaCameraController
This commit is contained in:
@@ -54,8 +54,8 @@ public class VanillaCameraController implements CameraController {
|
|||||||
direction.x * yawSin + direction.z * yawCos
|
direction.x * yawSin + direction.z * yawCos
|
||||||
);
|
);
|
||||||
// Adjust for current speed
|
// Adjust for current speed
|
||||||
// We transform speed to blocks per second: x->2^(x/300)
|
// We transform speed to blocks per second: x->2^(x/300+1)
|
||||||
direction.mul(Math.pow(2, speed / 300d));
|
direction.mul(Math.pow(2, speed / 300d + 1));
|
||||||
// Adjust for time passed
|
// Adjust for time passed
|
||||||
direction.mul(partialTicksPassed / 20);
|
direction.mul(partialTicksPassed / 20);
|
||||||
// Actually move
|
// Actually move
|
||||||
|
|||||||
Reference in New Issue
Block a user