rotating needle and zooming
haim96
Member Posts: 87
Hi,
i'm trying to create rotating needle like in car speedometer.
i tried to link the needle rotation to attribute (that range 0 to 360)
the needle doesn't rotate, but if i link it to the needle X position the needle moves.
(means that the attribute is update... )
what am i doing wrong?
also, does any one know if zooming with multi touch can be done in GS.
thanks!
i'm trying to create rotating needle like in car speedometer.
i tried to link the needle rotation to attribute (that range 0 to 360)
the needle doesn't rotate, but if i link it to the needle X position the needle moves.
(means that the attribute is update... )
what am i doing wrong?
also, does any one know if zooming with multi touch can be done in GS.
thanks!
Comments
To compensate, you need to create an Image with the pivoting point at its center. The resulting image will be 4x as big. Then, simply position the center of the Actor and its Image on the bottom half of the semicircle. Rotate it with the attribute and it will look as if it's pivoting from there.
Here is a visual for you:
http://www.flickr.com/photos/beyondthetech/4497242464/
the thing is that changing Actor rotation doesn't cause the needle to rotate.
it worked when i constrain it to position but not to rotation.
it worked all the time but since i changed the angle by 1 i couldn't see the rotation...