Need help with fixing rotation on drawing system

I’ve made a smooth drawing system and it should connect 2 points with the correct position and rotation.

The issue is that if you draw a circle fast, the drawing kind of messes up.


(The one on the left was drawn slowly, the one one the right was drawn fast.)

Here’s the code that changes the rotation:

(endPosition is the 1st point’s position, startPosition is the current point’s position)

paintClone.Rotation = math.atan2(endPosition.Y - startPosition.Y, endPosition.X - startPosition.X) * (180 / math.pi)

I know this post is very old but I found a solution almost 1 year later…

I fixed it by creating a “Paint” Object every time you click, and another one to connect 2 lines, which somehow fixes it.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.