From 33615ea88d1d44a04252347fdf28983116a365e0 Mon Sep 17 00:00:00 2001 From: Cyrille Henry Date: Sun, 26 Jul 2015 20:08:01 +0000 Subject: add a next type of like : hinge can force an angle between masses... svn path=/trunk/externals/pmpd/; revision=17500 --- pmpd2d.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'pmpd2d.h') 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; -- cgit v1.2.1