diff --git a/engine/src/core/com/jme3/cinematic/MotionPath.java b/engine/src/core/com/jme3/cinematic/MotionPath.java index 64bdc2234..cdb31d011 100644 --- a/engine/src/core/com/jme3/cinematic/MotionPath.java +++ b/engine/src/core/com/jme3/cinematic/MotionPath.java @@ -76,7 +76,6 @@ public class MotionPath implements Savable { */ public float interpolatePath(float time, MotionTrack control) { - float val; float traveledDistance = 0; TempVars vars = TempVars.get(); Vector3f temp = vars.vect1; @@ -103,18 +102,6 @@ public class MotionPath implements Savable { return traveledDistance; } - /** - * computes the distance between the spatial position and the temp vector. - * @param control the control holding the psatial - * @param temp the temp position - * @param store a temp vector3f to store the result - * @return - */ - private float getDist(MotionTrack control, Vector3f temp, Vector3f store) { - store.set(temp); - return store.subtractLocal(control.getSpatial().getLocalTranslation()).length(); - } - private void attachDebugNode(Node root) { if (debugNode == null) { debugNode = new Node();