diff --git a/src/xyz/soper/arty/util/ArtyMath.java b/src/xyz/soper/arty/util/ArtyMath.java index 7dd8d13..439a69c 100644 --- a/src/xyz/soper/arty/util/ArtyMath.java +++ b/src/xyz/soper/arty/util/ArtyMath.java @@ -16,6 +16,8 @@ public class ArtyMath { public static double calculateElevation(Vector vector){ //TODO: Rewrite this method using math from scratch instead of another method Vector groundProjection = new Vector(vector.getX(), 0, vector.getZ()); + double angle = groundProjection.angle(vector); + if(vector.getY() < 0) return -angle; return groundProjection.angle(vector); }