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

3D Particle Effect Scaling #6349

Open
1 task done
Hangman opened this issue Jan 6, 2021 · 0 comments
Open
1 task done

3D Particle Effect Scaling #6349

Hangman opened this issue Jan 6, 2021 · 0 comments

Comments

@Hangman
Copy link
Contributor

Hangman commented Jan 6, 2021

Reproduction steps/code

Clone => Run
https://github.com/Hangman/Particles3DIssue
Mousewheel to scale the effect
Press space to let the thread sleep for 200ms

Issue details

When scaling a 3D ParticleEffect at runtime the outcome is not what I expect it to be.
Sprite sizes, spawn positions, spawn offsets are all scaled properly but DynamicsInfluencer are not influenced by the new scale as far as I can tell.

In the example code I used a centripetal acceleration, particles are spawning on a circle and flying inwards to the center where they disappear. When this effect is scaled up, the particles won't fly to the center anymore as they still move at the same speed they did on scale 1. So visually they'll never reach the center.
2

When scaled down on the other hand, they move towards the center and way beyond.
1

I saw the

  • Relative
    checkbox under Centripetal Acceleration, it doesn't change this behavior. I don't know what it actually should do (either I missed some documentation or the documentation is missing) but I tested both ticked/unticked just in case.
    Here's the effect in Flame editor:
    3

Another thing I noticed that is a bit messy: If you pause the app for a moment, the particles fly too far. Some delta problem I guess.

Version of LibGDX and/or relevant dependencies

1.9.14

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