When the object attached to the transform control rotates, I want the transform control itself to rotate as well.
Before the rotation:
https://i.sstatic.net/yjTue.png
After the rotation:
https://i.sstatic.net/2opuU.png
As shown in the image, before the rotation, the top direction of the cylinder aligns with the z-axis of the transform control, but after the rotation, it does not.
I want the z-axis of the transform control to always point in the upward direction of the cylinder.