Implement ability to push minecarts on curved rails

This is my first real code contribution to an open source project. I'm grateful for any advice!
Also, I don't think that's how distance works (assuming @ChriPiv intends to use euclidian distance, if not he should add a comment).