T2 Apply the force
Find the force assignment
if (bPlaySim)
// F(v) = Mg + Fwind + Fairresistance + spring
// [TODO 2]: accumulate gravity, wind, air resistance and spring forces
// replace 0 with your formula
forces[v] = glm::vec3(0);
}Names of force variables
Start from gravity
Last updated