Implementing curves like photoshop illustrator pen tool.

I recently implemented a constant velocity catmullrom spline custom editor for movement of objects in my game. It works pretty good but the smoothness of the path especially round corners is not that great.

I was wondering if it is possible to implement something like the pen tool in photoshop. The path goes through the points and you can control the tangent at each point as well which doesn’t seem possible with catmullrom.

That’s just a cubic spline. Seems like you are already part-way there, just need to look up the calcs for a cubic spline.

There are lots of tutorials on photoshop on this link, just check out it’s really nice and well equipped. I am learning photoshop from this website.

https://www.brotsky.tv/2015/06/19/adobe-illustrator-pen-tool-tutorial/