How to draw a smooth bezier curve?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By att2018

How to draw a smooth bezier curve?

:bust_in_silhouette: Reply From: Andrea

do need to know how to calculate the points or how to display them?
If you need to display simply use draw_polyline(points, color, thickness, antialias_bool)where point is a PoolVector2Arrray(or vector3), and remember that the more point you calculate the smoother it will look like.

If you need to calculate those point you can search on the internet, it´s full of example (i actually found one for C++ in the Italian wikipedia: Curva di Bézier - Wikipedia )