This is project is based on code-base from computer animation course, to implement the simulation of cloth, sphere, box and their collision between themselves.
What this project has done:
- multiple spheres collide with cloth
- collision between spheres
- spheres collide with box
- rotation, translation of box from manipulation
- wind effect on cloth
Spheres collide with cloth main procedure:
- simulation_collision_detection(cloth, spheres, box);
- simulation_update_spheres(cloth, spheres, parameters.dt / N_step);
- update_cloth_constraints(cloth, spheres);
- simulation_compute_force(cloth, parameters);
- simulation_numerical_integration(cloth, parameters, parameters.dt/N_step);
- simulation_apply_constraints(cloth, constraint);
Results of video can be found at this link: https://youtu.be/TIH5Pa9TN4A