1.1 --- a/animpoint.cpp Wed Jul 16 10:46:14 2008 +0000
1.2 +++ b/animpoint.cpp Wed Oct 29 17:42:34 2008 +0000
1.3 @@ -114,8 +114,12 @@
1.4 setY (destPos.y() );
1.5 return animated;
1.6 }
1.7 - setX (startPos.x() + vector.x()*sqrt(n/animTicks) );
1.8 - setY (startPos.y() + vector.y()*sqrt(n/animTicks) );
1.9 +
1.10 + // Some math slow down the movement
1.11 + qreal f=1-n/animTicks;
1.12 + qreal ff=1-f*f*f;
1.13 + setX (startPos.x() + vector.x()*ff );
1.14 + setY (startPos.y() + vector.y()*ff );
1.15
1.16 return animated;
1.17 }