thee two ways to rotate an actor.
setRotation(angle) wich centets around the center regardless sapplied scale/translate (your option)
setRotatoonAnchored(angle,normalized_anchorx, normalized_anchory) which rotates an actor on an anchor point. setting .5 for anchor values is the same as the previous method.
hope that helps.
- i
--
You received this message because you are subscribed to the Google Groups "CAAT javascript framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caatjs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
you can set different anchors for rotation scale and translate transformations.
i dont get what you mean. if you rotate the uppet right corner will never be in the same position.
the effect you are seeing is this one:
first you rotate an actor by its center.
then, whenevet the top left corner (anchor 0,0) is the actor will svale from that point.
if it os not rotating the actor will scale as pinpointed from the upper left corner. if you rotate 45degs will be scaling downwards etc.
- i