aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Henry <nusmuk@users.sourceforge.net>2008-03-02 13:54:51 +0000
committerCyrille Henry <nusmuk@users.sourceforge.net>2008-03-02 13:54:51 +0000
commitd050d4b404383ea465001f20f702265f13ed03ba (patch)
tree5314455c9c1f63691caedb598413598c64fee6ed
parent4a989c8cc399e2ec62e3e099d220a6e7de489812 (diff)
You can now send many forces messages to a mass with no problem.
svn path=/trunk/externals/nusmuk/; revision=9526
-rw-r--r--msd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/msd.h b/msd.h
index 88bd6ce..5754376 100644
--- a/msd.h
+++ b/msd.h
@@ -111,7 +111,7 @@ public:
}
}
- inline void setForce(int n,t_float f) { force[n] = f; }
+ inline void setForce(int n,t_float f) { force[n] += f; }
inline void setForce(t_float f[N])
{