-
- // track mouse wheel movements
- final double actualAcceleration = 50 * avatar.avatarAcceleration * (1 + (avatar.getMovementSpeed() / 10));
-
- avatar.getMovementVector().y += (wheelMovedDirection * actualAcceleration);
- avatar.enforceSpeedLimit();
-
- // check if view shall be repainted
- boolean repaintNeeded;
- repaintNeeded = (mouseDraggedDirection.x != 0) || (mouseDraggedDirection.y != 0) || (wheelMovedDirection != 0);
-
- // reset movement counters
- wheelMovedDirection = 0;
- mouseDraggedDirection.zero();
-
- return repaintNeeded;