Based off of this tutorial: https://www.youtube.com/watch?v=50DhsUaXtfs for simple gravity, then I tweaked it a bit.