| Date: Tue, 15 Mar 2016 13:45:06 -0700
add comments, mass and spring_stiffness
Diffstat:
M slider.h | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
--- |
| t@@ -4,11 +4,12 @@
#include "typedefs.h"
typedef struct {
- Float3 pos; // spatial position
- Float3 vel; // spatial velocity
- Float3 acc; // spatial acceleration
- Float3 force; // sum of forces
- Float bulk_modulus; // elastic compressibility
+ Float3 pos; // spatial position [m]
+ Float3 vel; // spatial velocity [m/s]
+ Float3 acc; // spatial acceleration [m/(s*s)]
+ Float3 force; // sum of forces [N]
+ Float mass; // mass [kg]
+ Float spring_stiffness; // elastic compressibility [N/m]
int neighbors[]; // indexes of sliders this one is bonded to
} slider;
|