Skip to content

Commit

Permalink
Increase tracking speed of camera when tracking ball
Browse files Browse the repository at this point in the history
Over the years, the kicks improved and the ball moves faster.
Sometimes, the ball is leaving the camera view. Increasing the movmement speed
of the camera should help with this.
  • Loading branch information
hannesbraun committed Apr 29, 2023
1 parent 708028c commit 199b9fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/rv/ui/view/TargetTrackerCamera.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private float scaleWithBallSpeed(Viewport screen, float scale)
}

// Maximum factor that velocity can increase scale by
float VEL_SCALE_FACTOR_MAX = 3.0f;
float VEL_SCALE_FACTOR_MAX = 12.0f;

// Amount that screen velocity is multiplied by when determining scale
float VEL_SCALE_FACTOR = 0.003f;
Expand Down

0 comments on commit 199b9fd

Please sign in to comment.