private static void Game_OnGameUpdate(EventArgs args) { if (Controller == null || !Controller.Connected) { Chat.Print("Controller disconnected!"); Game.OnUpdate -= Game_OnGameUpdate; return; } Controller.Update(); UpdateStates(); // Camera var camera = Camera.ScreenPosition + Controller.RightStick.Position / 1500; if (Camera.ScreenPosition.Distance(camera) > 5) { Camera.ScreenPosition = camera; } //Orbwalker Position var p = ObjectManager.Player.ServerPosition.To2D() + Controller.LeftStick.Position / 75; var pos = new Vector3(p.X, p.Y, ObjectManager.Player.Position.Z); PadPos = pos; if (ObjectManager.Player.Distance(pos) < 100) { return; } SetOrbwalkingPosition(pos); }