3 ms·
I may be testing wrong, but I believe that approach causes dropping a steady stream of sand on the right side of a cone to produce very strange falling behaviou
by jakear 4y ago
I may be testing wrong, but I believe that approach causes dropping a steady stream of sand on the right side of a cone to produce very strange falling behaviour as compared to the left, because the stream is more than one pixel wide. Looks like you changed some other bits around so you may have addressed this some other way.
- jdthedisciple 4y agoWhoops I just noticed a copy-paste error I did, which might be the reason for what you describe in case you copied my code above 3rd last line the "window.sandgrid[belowLeft] == 1" needs to be "this.isEmpty(belowLeft)" instead Other than that I'm not sure what would be causing the weird behaviour. I use this and it seems to work just fine.