Skip to content

Commit

Permalink
y
Browse files Browse the repository at this point in the history
  • Loading branch information
YHerm committed Jun 14, 2024
1 parent 3fd8053 commit 3e42c66
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ public class JoysticksFunctionsUtil {
private static final double SENSITIVE_VALUE_POWER = 2;
private static final double SQUARE_FACTOR = 1.4;


public static double getDeadZonedSensitiveSquaredValue(double value) {
return getSensitiveValue(getDeadZonedSquaredValue(value));
}

public static double getDeadZonedSquaredValue(double value) {
return getSquaredValue(getDeadZonedValue(value));
}

public static double getDeadZonedValue(double value) {
return getDeadZonedValue(value, DEAD_ZONE);
}
Expand Down Expand Up @@ -60,13 +69,4 @@ public static double getSquaredValue(double value) {
return MathUtils.clamp(squaredAxisValue, -1, 1);
}

public static double getDeadZonedSquaredValue(double value){
return getSquaredValue(getDeadZonedValue(value));
}

public static double getDeadZonedSensitiveSquaredValue(double value){
return getSensitiveValue(getDeadZonedSquaredValue(value));
}


}

0 comments on commit 3e42c66

Please sign in to comment.