Thanks, we remade the formula using the bezier function, and now should all works well with nice curves and the option to move the curve points.
Develop games in your browser. Powerful, performant & highly capable.