Files
test/source/blender/blenkernel/intern
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 09:14:36 +11:00
2022-06-03 15:08:11 +10:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-03-30 11:38:24 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-05-15 00:36:42 -07:00
2022-05-22 13:05:12 +02:00
2022-05-06 13:33:23 +02:00
2022-05-30 16:16:25 +02:00
2022-05-22 20:06:24 +02:00
2022-05-30 15:42:38 +02:00
2022-04-28 10:53:50 -05:00
2022-02-11 09:14:36 +11:00
2022-02-25 13:22:42 +01:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-02-11 09:14:36 +11:00
2022-06-10 10:29:35 +02:00
2022-04-04 15:43:25 +10:00
2022-06-17 15:31:21 +02:00
2022-06-20 10:14:17 -05:00
2022-05-16 16:56:27 +02:00
2022-06-17 13:30:44 +02:00
2022-05-30 14:09:07 +02:00
2022-04-15 16:40:01 +02:00
2022-06-09 10:17:39 +10:00
2022-06-03 15:08:11 +10:00
2022-05-16 15:42:54 +02:00
2022-06-15 14:30:07 +10:00
2022-06-01 15:38:48 +10:00
2022-02-11 09:14:36 +11:00
2022-06-10 10:29:35 +02:00
2022-02-11 09:14:36 +11:00
2022-05-30 17:46:44 +02:00
2022-04-02 06:14:27 +02:00
2022-03-09 10:13:43 +11:00