Added a way to clear all waypoitns at once on a motion path
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8365 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
4cde46bee5
commit
7c4f085174
@ -337,6 +337,10 @@ public class MotionPath implements Savable {
|
||||
}
|
||||
}
|
||||
|
||||
public void clearWayPoints(){
|
||||
spline.clearControlPoints();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the path to be a cycle
|
||||
* @param cycle
|
||||
|
@ -179,6 +179,11 @@ public class Spline implements Savable {
|
||||
}
|
||||
}
|
||||
|
||||
public void clearControlPoints(){
|
||||
controlPoints.clear();
|
||||
totalLength = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method computes the total length of the curve.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user