aboutsummaryrefslogtreecommitdiff
path: root/pmpd2d.h
diff options
context:
space:
mode:
authorCyrille Henry <nusmuk@users.sourceforge.net>2015-07-26 20:08:01 +0000
committerCyrille Henry <nusmuk@users.sourceforge.net>2015-07-26 20:08:01 +0000
commit33615ea88d1d44a04252347fdf28983116a365e0 (patch)
treed991c0230b3a3b171c75b765e814343839782b21 /pmpd2d.h
parent1137b3860fce28495161ad61d6f04c8350f2da4d (diff)
add a next type of like : hinge can force an angle between masses...
svn path=/trunk/externals/pmpd/; revision=17500
Diffstat (limited to 'pmpd2d.h')
-rw-r--r--pmpd2d.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/pmpd2d.h b/pmpd2d.h
index 2ab71df..1cd3da8 100644
--- a/pmpd2d.h
+++ b/pmpd2d.h
@@ -24,17 +24,18 @@ typedef struct _mass {
typedef struct _link {
t_symbol *Id;
- int lType;
+ int lType; // 0 pour un lien normal, 1 pour un tLink, 2 pour un tabLink, 3 pour un hinge
struct _mass *mass1;
struct _mass *mass2;
+ struct _mass *mass3; // seulement pour le hinge
t_int active;
t_float K;
t_float D;
- t_float L;
+ t_float L; // teta
t_float Pow;
- t_float Lmin;
- t_float Lmax;
- t_float distance;
+ t_float Lmin; // tetamin pour un hinge
+ t_float Lmax; // tetamax
+ t_float distance; // angle de la charniere ds le cas d'un hinge
t_float VX; // vecteur portant la liaison, si c'est le cas
t_float VY;
t_symbol *arrayK;