Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on “When are we going to use this in our everyday life?” (2017). Parent comment
> If you divide V by something like 0.0001 each frame, you will implement gravity.
You will implement air resistance. Air resistance is proportional to the velocity, gravity is a constant offset.
V(n+1) = V(n) - drag * V(n) - gravity
There are no comments on this comment yet.
> If you divide V by something like 0.0001 each frame, you will implement gravity.
You will implement air resistance. Air resistance is proportional to the velocity, gravity is a constant offset.
V(n+1) = V(n) - drag * V(n) - gravity