Here is some improvised code for Boomer246. Note: Velocity is not needed, but I just added it to make it smoother