erikwatson / snowfall.js

Stay cool ☃️
https://erikwatson.github.io/snowfall.js/
MIT License
4 stars 2 forks source link

Wind should probably be a Vector #2

Closed erikwatson closed 5 years ago

erikwatson commented 6 years ago

At the moment "wind" is just added to the position during update, but it would be nice to be able to blow the snowflakes in a specific direction using a vector instead.

const wind = { x: 1, y: 1 } // blow up and to the right 
erikwatson commented 5 years ago

Fixed in the new version.