tguerin / newton

An Easy To Use Particle Emitter
https://newton.7omtech.fr
MIT License
22 stars 7 forks source link

Gravity effect #18

Open subzero911 opened 8 months ago

subzero911 commented 8 months ago

Add an ability to apply gravity to particles.

tguerin commented 8 months ago

Newton was not intended to be a physics engine like Forge2d, the idea is more to have easily customizable animation. For now particles have no mass, introducing gravity is not that easy I'll try to poc and find out how doable it would be to plug some physics properties.

subzero911 commented 8 months ago

It's a serious problem, Flutter doesn't have any particle systems other than commonly used confetti. There are particles in Flame, but they can't be used outside of a Flame instance. So your package looks like the only solution.

tguerin commented 8 months ago

A forge2d integration should be possible, will try to poc that. Thanks for the feedback.