Exemplo n.º 1
0
 private void calculateAngleAroundPlayer() {
   if (Mouse.isButtonDown(2)) { // R_BUTTON
     float angleChange = MouseHelper.getDX() * 0.3f;
     angleAroundPlayer -= angleChange;
   }
 }
Exemplo n.º 2
0
 private void calculatePitch() {
   if (Mouse.isButtonDown(2)) { // R_BUTTON
     float pitchChange = MouseHelper.getDY() * 0.1f;
     pitch -= pitchChange;
   }
 }