Rotate to curve

Added movement and snap to curve with rotation