mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-13 01:51:39 -07:00
Normalize camera movement rounding, created Camera class
This commit is contained in:
parent
143d14e960
commit
9701d3d1c8
17 changed files with 122 additions and 86 deletions
|
|
@ -44,10 +44,14 @@ public final class Mouse implements MouseListener, MouseMotionListener, FocusLis
|
|||
int accelY = this.mouseWheelY - y;
|
||||
this.mouseWheelX = x;
|
||||
this.mouseWheelY = y;
|
||||
Static57.yawTarget += accelX * 2;
|
||||
Static72.pitchTarget -= (accelY << 1);
|
||||
Camera.yawDirection = -1;
|
||||
Camera.yawTarget += accelX * 2;
|
||||
Camera.pitchDirection = -1;
|
||||
Camera.pitchTarget -= accelY * 2;
|
||||
Camera.clampCameraAngle();
|
||||
return;
|
||||
}
|
||||
|
||||
if (Static93.instance != null) {
|
||||
Static93.anInt2467 = 0;
|
||||
Static147.anInt3521 = x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue