Explorar o código

Removed some unused variable and method in MotionPath

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9169 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
rem..om %!s(int64=13) %!d(string=hai) anos
pai
achega
60479107bb
Modificáronse 1 ficheiros con 0 adicións e 13 borrados
  1. 0 13
      engine/src/core/com/jme3/cinematic/MotionPath.java

+ 0 - 13
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();