diff options
author | Cyrille Henry <nusmuk@users.sourceforge.net> | 2011-02-24 21:51:46 +0000 |
---|---|---|
committer | Cyrille Henry <nusmuk@users.sourceforge.net> | 2011-02-24 21:51:46 +0000 |
commit | e48f931368d604d8d4a36dc0ef41262d9eebbd79 (patch) | |
tree | 16b47f4e474fb1f1da378f8069eda051630b87a1 | |
parent | 5092ec6f3e4c638d3f2db7eefa8c822e2ac06338 (diff) |
correct a small bug with 1d non linear link
svn path=/trunk/externals/pmpd/; revision=14961
-rw-r--r-- | pmpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -192,7 +192,7 @@ void pmpd_bang(t_pmpd *x) else
{
F = x->link[i].D * (L - x->link[i].distance) ;
- F += x->link[i].K * pow_ch( L - x->link[i].L, x->link[i].Pow);
+ F += x->link[i].K * sign_ch(L) * pow_ch( absL - x->link[i].L, x->link[i].Pow);
}
x->link[i].mass1->forceX -= F;
|