/*************************************************************************** File: PBMSpringParams.h Created: 02/12/2002 Author: Maxim Garber Computer Science Department University of North Carolina - Chapel Hill garber@cs.unc.edu Description: Structure to hold the parameters for a spring. ----------------------------------------------------------------------------. Copyright 2002 Maxim Garber UNC Collide Research Group *****************************************************************************/ #include "ODESolver.h" struct PBMSpringMassParams { float anchor [3]; // anchor position of the spriung float position[3]; // position of the mass float restLength; // rest length of the spring float springConstant; // spring constant float mass; // mass at the end of the spring // physical constants float gravity[3]; // vector for gravitation force float friction; // value of the friction force // ODE solver to use ODESolver* integrator; };