To have a needle rotate where you wanted it to be, one had to create an image TWICE the length of the needle, so the « center » of the needle was right in the middle of the image.
This because the rotate() function used to rotate an image only by its center.
Nowadays it is way more easier since the center of rotation can be defined directly in the rotate() function.
https://siminnovations.com/wiki/index.php?title=Rotate
Use:
Code: Select all
rotate(node_id, degrees, anchor_x, anchor_y, anchor_z)
Leave anchor_z to 0.
Could you publish here your instrument, so we can have an idea of the shape of the needle?
Jacques