The velocity passed in here is the same in both places. Just break it out into a new `animationVelocity` variable and use that in both places.