Files
test/source/blender/blenkernel
Lukas Tönne f4d8382c86 Rigid body physics: Move effector force update into substep loop.
The substep loop for rigid bodies causes unequal effects of force fields depedending on the substep setting, larger
substep counts cause a diminishing effect of force fields.
This is because the force to apply on a body is reset in Bullet after each step and needs to be recomputed. Without this
the body will just coast with constant velocity after the first substep. Since the per-step impulse with larger substep
counts is smaller, the effect is that more substeps cause a smaller total impulse.

The fix is to move external force calculation into the substep loop and update forces for each substep.

Note that this may be considered a breaking change, because the breaking commit rB1aa54d4921c2 has been in master for
a long time and after this fix force fields will generally have a much larger effect on rigid bodies (10x for the
default setting of 10 substeps).

Differential Revision: https://developer.blender.org/D15173
2022-06-22 06:37:45 +01:00
..
2022-02-11 10:28:59 +01:00
2022-03-21 18:59:03 +01:00
2022-05-22 13:05:12 +02:00
2022-02-11 09:14:36 +11:00
2022-06-13 13:17:32 +02:00
2022-05-06 13:33:23 +02:00
2022-06-03 15:08:11 +10:00
2022-05-22 20:06:24 +02:00
2022-06-03 15:08:11 +10:00
2022-02-11 09:14:36 +11:00
2022-04-18 12:36:37 -05:00
2022-06-14 14:30:13 +10:00
2022-06-20 10:14:17 -05:00
2022-06-17 19:18:47 +02:00
2022-02-11 09:14:36 +11:00
2022-06-04 13:50:28 -07:00
2022-05-16 15:42:54 +02:00
2022-06-08 12:30:01 -07:00
2022-04-20 10:41:31 +10:00