diff --git a/engine/src/core/com/jme3/scene/shape/Curve.java b/engine/src/core/com/jme3/scene/shape/Curve.java index d7d0a4745..56e57356d 100644 --- a/engine/src/core/com/jme3/scene/shape/Curve.java +++ b/engine/src/core/com/jme3/scene/shape/Curve.java @@ -181,4 +181,12 @@ public class Curve extends Mesh { updateBound(); updateCounts(); } + + /** + * This method returns the length of the curve. + * @return the length of the curve + */ + public float getLength() { + return spline.getTotalLength(); + } }