Fixed issue in MotionPath where having a path with only 2 waypoints with the same coordinates was causing an IndexArrayOutOfBound exception.
Also used a temp var for a Vec2 that was instanciated on each frame
Merge branch 'master' of https://github.com/jMonkeyEngine/jmonkeyengine.git