learn some animation v2


md ​

marvelous designer: mass-spring model

$ x¨=M−1(−∂x∂E​+F) $

$ F_net​=m*a $

SymbolNameMeaning
xPosition vectorStacked positions of all n particles: x∈R3n
x˙Velocitydxdt, first time derivative of position
x¨Accelerationd2xdt2, what we're solving for each timestep
MMass matrixDiagonal 3n×3n matrix. Each particle i contributes miI3 on the diagonal
M−1Inverse mass matrixTrivial to compute since M is diagonal: diag(1/m1,1/m1,1/m1,…)
E(x)Internal elastic energyPotential energy stored in cloth deformation (stretch, shear, bend)
−∂E∂xInternal elastic forceNegative gradient of energy = force that tries to restore cloth to rest shape
FExternal forcesGravity, wind, damping, collision response, etc.

MD ​

MD UI ParameterSymbolWhere It Lives
Stretch (Weft/Warp)ksEstretch
ShearkshEshear
Bending (Weft/Warp)kbEbend
DampingdFdamping
Air DampingcdFair
Density / Massmi (diagonal of M)Everywhere via M−1
GravitygFgravity
Simulation Quality1/h (substep count)Implicit Euler step size
Particle DistanceMesh resolutionDetermines n, edge count, L0 values

ue5 chaoscloth ​

PBD