Fluid: Removed clamp from force assignment
The clamp is too aggressive and results in forces being too weak.
This commit is contained in:
parent
dbbfba9428
commit
d0c1d93b7e
Notes:
blender-bot
2023-02-14 07:36:17 +01:00
Referenced by issue #82488, Mantaflow - force fields have very low influence compare to 2.90.1
|
@ -3195,8 +3195,7 @@ static void update_effectors_task_cb(void *__restrict userdata,
|
|||
normalize_v3(retvel);
|
||||
mul_v3_fl(retvel, mag);
|
||||
|
||||
/* Constrain forces to interval -1 to 1. */
|
||||
CLAMP3(retvel, -1.0f, 1.0f);
|
||||
/* Copy computed force to fluid solver forces. */
|
||||
data->force_x[index] = retvel[0];
|
||||
data->force_y[index] = retvel[1];
|
||||
data->force_z[index] = retvel[2];
|
||||
|
|
Loading…
Reference in New Issue