improved 2D collisions, fixed duplicate line in fireworks 1D, remove additional dimming if gamma is active

Adding symmetrical but random pushing leads to better stacking, also pushing more if large particles are too close helps to separate them better. Pushing them every frame also helps.
Pushing only particle1 as it was tends to lead to more collapsing and some random movement within a pile. There was also a bug which applied way to much velocity unnecessarily.
This commit is contained in:
Damian Schneider
2025-12-16 20:25:24 +01:00
parent 7f4e0f74ba
commit dd3edf1a3c
2 changed files with 38 additions and 43 deletions

View File

@@ -9861,7 +9861,6 @@ uint16_t mode_particleFireworks1D(void) {
uint8_t *forcecounter;
if (SEGMENT.call == 0) { // initialization
if (!initParticleSystem1D(PartSys, 4, 150, 4, true)) // init advanced particle system
if (!initParticleSystem1D(PartSys, 4, 150, 4, true)) // init advanced particle system
return mode_static(); // allocation failed or is single pixel
PartSys->setKillOutOfBounds(true);