[fusion-commits] Animation plugin: Changes to 'master' (6057733f04af19f519dc059bca6a3c33a0953228)
cornelius at server.beryl-project.org
cornelius at server.beryl-project.org
Sat Jul 7 05:08:46 CEST 2007
New commits:
commit 6057733f04af19f519dc059bca6a3c33a0953228
Author: Erkin Bahceci <erkinbah at gmail.com>
Date: Fri Jul 6 23:08:26 2007 -0400
Curvier curved fold.
curvedfold.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: fusion/plugins/animation/curvedfold.c
===================================================================
--- fusion/plugins/animation/curvedfold.c
+++ fusion/plugins/animation/curvedfold.c
@@ -106,8 +106,8 @@ fxCurvedFoldModelStepObject(CompWindow * w,
object->position.x =
origx + sin(forwardProgress * M_PI / 2) *
(0.5 - object->gridPosition.x) * 2 * model->scale.x *
- (curveMaxAmp -
- curveMaxAmp * 4 * relDistToCenter * relDistToCenter);
+ curveMaxAmp *
+ (1 - pow (pow(2 * relDistToCenter, 1.3), 2));
object->position.y =
(1 - forwardProgress) * origy +
forwardProgress * (BORDER_Y(w) + BORDER_H(w) / 2.0);
More information about the commits
mailing list