Removed arbitrary factor 2.0 on volumetric hair friction factor.

This was introducing energy into the system for any factor beyond 0.5
and caused major instability.
This commit is contained in:
Lukas Tönne 2014-10-31 16:30:54 +01:00
parent 54c69c4ed8
commit 9be290c92e

@ -593,9 +593,7 @@ static void cloth_continuum_step(ClothModifierData *clmd)
ClothVertex *vert;
const float fluid_factor = 0.95f; /* blend between PIC and FLIP methods */
/* 2.0f is an experimental value that seems to give good results */
float smoothfac = 2.0f * parms->velocity_smooth;
float collfac = 2.0f * parms->collider_friction;
float smoothfac = parms->velocity_smooth;
float pressfac = parms->pressure;
float minpress = parms->pressure_threshold;
float gmin[3], gmax[3];