I am trying to implement Catmull-Rom interpolation for animating keyframes. Here is a pic of my code. The animation comes out really messed up. 1