CodingTrain / CodingTrain/Suggestion-Box

Falling snowflakes with realistic physics

Open
#1,432 0 comments 1 reaction 0 assignees View on GitHub
holiday telethon
Dominant language
No language data
Stars
570
Forks
85
PR merge metrics
No merged PRs in 30d

Description

Here is a code with a falling snowflake that has realistic physics:

https://editor.p5js.org/ChrisOrban/sketches/BJN5YyA14

The snowflake starts with a random velocity then it falls until it reaches terminal velocity. I illustrate both the gravity force vector and the air drag force vector and the velocity vector.

It would be fun to see the Dan Shiffman take on this with multiple snowflakes with a more "classy" approach. One snowflake is not so interesting.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.