Vad_M:
I had a lot a problems with this because DesktopX work incorrect with any rotating objects. Seems It lost a centar... So I made complicated code which calculate the rotating angle through geometry formulas and then apply these angle to the object. Now my controls rotate around the center without any bugs. Let me know if you need this code.
Seems that Mr. Vad_M did us all a favor and coded a solution to that problem that apparently fixes the issue completely.
But still it would be a whole lot easier if the problem got fixed...
Even scripts this simple will wobble the object:
Code: vbscript
- Sub Object_OnTimer1
- Object.Rotation=Object.Rotation+1
- End Sub
The error appears to be not in the rotation axis (since spin itself is correct) but rather that dx is not anchoring the object to its center, apparently it's using object's 0,0 point as an anchor when it comes to re-positioning the rotated object.