   need help for my rope+cloth simulation
  I am currently doing cloth simulation, I had built up the Mass Point class as follow:class Mass_Point{ public :    float mass; //Mass_point mass    GraphicsLib::Vector Mass_PointPos; //Mass_Point Position    GraphicsLib::Vector Mass_PointVelocity; //Mass_Point Velocity    GraphicsLib::Vector Mass_PointForce; //Mass_Point Force    float dt; //change of time    GraphicsLib::Vector Mass_Pointaccel; //Mass_Point acceleration    Mass_Point(float m);    void applyForce(GraphicsLib::Vector Mass_PointF);    void Initialize();    void Update(float dt);};Mass_Point::Mass_Point(float m){  mass=m; }void Mass_Point::applyForce(Vector Mass_PointF){ Mass_PointForce+=Mass_PointF; }  void Mass_Point::Initialize() {  Vector Mass_PointForce (0,0,0); }  void Mass_Point::Update(float dt) {    Mass_Pointaccel+=Mass_PointForce/mass; //a=f/m   Mass_PointVelocity += Mass_Pointaccel*dt; //velocity+=a*dt   Mass_PointPos+= Mass_PointVelocity*dt; //position+=velocity*dt  }but I don't have an idea to create array for the Mass Point and Update the force in order to create a rope with spring and mass point. If I cannot build the rope, I can't build a cloth using this concept. Can anyone suggest a simple process for creating rope simulation using C++, SDL, and OpenGL (hopefully don't need to use much pointer, as I don't have a good foundation of programming)? is there any tutorial for simple rope/cloth simulation?I wish I can get the reply asap as the assignment due next week. Thank you.   
  have a look at this. I've used it to mess around with clothes and ropes, and it's great. simple, stable, and looking good.   ;  Hi there,Take a look at this soft body simulation. It is coded in c++ and uses opengl + SDL, as you requested. Although this doesn't quite do what you request, all you need is in there somewhere. Dig in and study - and have fun!http://www.jernmager.dk/stuff/cpp/softbody_sdl.zipCheers,Mike   