diff --git a/core/src/com/me/brickbuster/Utils.java b/core/src/com/me/brickbuster/Utils.java index 6dff173..1eab09a 100644 --- a/core/src/com/me/brickbuster/Utils.java +++ b/core/src/com/me/brickbuster/Utils.java @@ -14,7 +14,7 @@ public class Utils { float lineLen = lineDir.len(); lineDir.nor(); Vector2 ballDir = p1.sub(linep1); - return linep1.add(lineDir.nor().scl(MathUtils.clamp(ballDir.dot(lineDir), 0, lineLen))); + return linep1.add(lineDir.scl(MathUtils.clamp(ballDir.dot(lineDir), 0, lineLen))); } }