tornavis/source/blender/physics
Luca Rood 4f4a484b9b Cloth refactor: Remove goal springs and some other cleanup
This removes the goal springs, in favor of simply calculating the goal forces on the vertices directly. The vertices already store all the necessary data for the goal forces, thus the springs were redundant, and just defined both ends as being the same vertex.

The main advantage of removing the goal springs, is an increase in flexibility, allowing us to much more nicely do some neat dynamic stuff with the goals/pins, such as animated vertex weights. But this also has the advantage of simpler code, and a slightly reduced memory footprint.

This also removes the `f`, `dfdx` and `dfdv` fields from the `ClothSpring` struct, as that data is only used by the solver, and is re-computed on each step, and thus does not need to be stored throughout the simulation.

Reviewers: sergey

Reviewed By: sergey

Tags: #physics

Differential Revision: https://developer.blender.org/D2514
2017-03-23 03:52:46 -03:00
..
intern Cloth refactor: Remove goal springs and some other cleanup 2017-03-23 03:52:46 -03:00
BPH_mass_spring.h Replace MFace w/ vert-tri's for collision modifier 2015-07-31 14:00:07 +10:00
CMakeLists.txt Eigen: move C API into intern/eigen. 2015-12-10 01:58:06 +01:00