Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPUParticles2D with scale max or min as a non-one number, align Y axis flag on, damping maximum set to a non-zero number, and gravity set to any value below the damping max causes particles to scale up exponentially #99645

Open
ScipioGothicus opened this issue Nov 24, 2024 · 0 comments

Comments

@ScipioGothicus
Copy link

Tested versions

  • Reproducible in 4.0.stable, 4.3.stable, 4.4.dev5

System information

Windows 10.0.19045 - Vulkan (Forward+) - integrated Intel(R) Iris(R) Xe Graphics (Intel Corporation; 32.0.101.6078) - 13th Gen Intel(R) Core(TM) i5-1340P (16 Threads)

Issue description

This is a very weird and niche bug I encountered when messing with particle systems. Not setting any one of the flags mentioned in the title will make the problem disappear, but setting all as mentioned causes the particles to unexpectedly rapidly scale up to massive sizes, often larger than the furthest zoom-out can see. This can all be done in the editor. I expected this to cause the initial velocity of the particles to dampen, slowing them from fast to stopped, and I had the minimum and maximum scale flags set higher than 1 to vary the particle size.

Steps to reproduce

  1. Create a new scene
  2. Add a CPUParticles2D node
  3. Set Particle Flags > Align Y to on
  4. Set damping maximum to a non-zero positive number
  5. Set scale maximum to a positive number higher than one (or scale minimum to a positive number lower than one, this will cause particles to scale down exponentially, essentially the opposite effect as described in the title)
  6. Set X or Y gravity to a px/s number lower than the damping maximum. (Setting both also has an odd effect)

Minimal reproduction project (MRP)

project.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant