Age | Commit message (Collapse) | Author |
|
There are currently 3 types of springs: basic linear springs, goal
springs toward a fixed global target (not recommended, but works) and
bending springs.
These are agnostic to the specific spring definition in the cloth system
so hair systems can use the same API without converting everything to
cloth first.
Conflicts:
source/blender/physics/intern/implicit_blender.c
|
|
Still misses spring forces.
|
|
source file.
|
|
Force calculation is disabled, will follow shortly.
|
|
This also initializes spring matrix indices (off-diagonal 3x3 blocks),
which now uses a new API function.
|
|
API for the solver now has functions for setting of vertex motion state
and the associated root transform data.
|
|
code.
The implicit solver itself should remain agnostic to the specifics of
the Blender data (cloth vs. hair). This way we could avoid the bloated
data conversion chain from particles/hair to derived mesh to cloth
modifier to implicit solver data and back. Every step in this chain adds
overhead as well as rounding errors and a possibility for bugs, not to
speak of making the code horribly complicated.
The new subfolder is named "physics" since it should be the start of a
somewhat "unified" physics systems combining all the various solvers in
the same place and managing things like synchronized time steps.
|