this tweaked version (but the end x pos and end y pos is almost same with the block input) dey r easy :P
I used the bezier curve engine that kirbyzaz used (forgot the name of the creator)