- //Mf::Vector2 x = current.position - Mf::Vector2(500.0, 200.0);
- //Mf::Scalar mag = x.length();
- //Mf::Scalar d = 50.0;
-
- //// gravity:
- //current.force = Mf::Vector2(0.0, -2000.0);
- //// spring:
- ////current.force += -15.0 * x - 1.5 * current.velocity;
- //current.force += -20.0 * (mag - d) * (x / mag) - 2.0 * current.velocity;
- //// internal:
- //current.force += userForce;
- //current.recalculate();
- //std::cout << "force: " << current.momentum << std::endl;
-
- //Mf::euler<State,Derivative>(current, t, dt);
-
- current.integrate(t, dt);