Removed some unused variable and method in MotionPath
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9169 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
9836918a07
commit
60479107bb
@ -76,7 +76,6 @@ public class MotionPath implements Savable {
|
|||||||
*/
|
*/
|
||||||
public float interpolatePath(float time, MotionTrack control) {
|
public float interpolatePath(float time, MotionTrack control) {
|
||||||
|
|
||||||
float val;
|
|
||||||
float traveledDistance = 0;
|
float traveledDistance = 0;
|
||||||
TempVars vars = TempVars.get();
|
TempVars vars = TempVars.get();
|
||||||
Vector3f temp = vars.vect1;
|
Vector3f temp = vars.vect1;
|
||||||
@ -103,18 +102,6 @@ public class MotionPath implements Savable {
|
|||||||
return traveledDistance;
|
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) {
|
private void attachDebugNode(Node root) {
|
||||||
if (debugNode == null) {
|
if (debugNode == null) {
|
||||||
debugNode = new Node();
|
debugNode = new Node();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user