Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int vInput = Game.current.renderer.VerticalInput;
- float rad = ((float)Rotation / 4096) * (3.14f * 2);
- float prevX = X;
- float prevZ = Z;
- boolean isMoved = vInput != 0;
- X -= -Math.sin(rad) * (vInput * MOVEMENT_SPEED);
- Z -= Math.cos(rad) * (vInput * MOVEMENT_SPEED);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement