gurkenlabs / litiengine

LITIENGINE 🕹 The pure 2D java game engine.
https://litiengine.com/
MIT License
731 stars 94 forks source link

Triangle particle rounding errors #418

Closed nightm4re94 closed 2 years ago

nightm4re94 commented 3 years ago

Describe the bug Whenever triangle particles change their size, there seem to be rounding errors. This causes them to jitter visibly, whereas the other shape particles don't suffer from this problem.

To Reproduce Steps to reproduce the behavior:

  1. Create an Emitter
  2. Define delta width and delta height
  3. Set Particle type to Triangle

Expected behavior No Jittering while resizing the particle

Screenshots Comparison of different particle types: triangleParticleBug