diff --git a/engine/src/core/com/jme3/math/LineSegment.java b/engine/src/core/com/jme3/math/LineSegment.java index 00eda8cce..cca506553 100644 --- a/engine/src/core/com/jme3/math/LineSegment.java +++ b/engine/src/core/com/jme3/math/LineSegment.java @@ -89,7 +89,7 @@ public class LineSegment implements Cloneable, Savable, java.io.Serializable { public LineSegment(Vector3f start, Vector3f end) { this.origin = new Vector3f(0.5f * (start.x + end.x), 0.5f * (start.y + end.y), 0.5f * (start.z + end.z)); this.direction = end.subtract(start); - this.extent = direction.length(); + this.extent = direction.length() * 0.5f; direction.normalizeLocal(); }