Skip to content

Commit

Permalink
Adjusted speed reduction value range in collision handler
Browse files Browse the repository at this point in the history
Signed-off-by: srs-bsns <[email protected]>
  • Loading branch information
srs-bsns committed Apr 14, 2019
1 parent 50c5639 commit f06fda9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ public static void setFallDamageThreshold(final int val) {
}

public static void setSpeedReductionHorizontal(final double val) {
speedReductionHorizontal = (val < 0.0d) ? 0.0d : ((val > 1.0d) ? 1.0d : val);
speedReductionHorizontal = (val < 0.05d) ? 0.05d : ((val > 1.0d) ? 1.0d : val);
}

public static void setSpeedReductionVertical(final double val) {
speedReductionVertical = (val < 0.0d) ? 0.0d : ((val > 1.0d) ? 1.0d : val);
speedReductionVertical = (val < 0.05d) ? 0.05d : ((val > 1.0d) ? 1.0d : val);
}

// This method name has to match the method that is called in #transform, above
Expand Down

0 comments on commit f06fda9

Please sign in to comment.