On May 13, 2006, at 2:47 PM, FreeFL wrote:

|
But I want to rotate around the first * character, at the leftmost of the string and at middle height.
There should be a way to set this, but I can't figure it...

That seems to be a different rotation point than indicated in the earlier post upon which my example is based, so the math will be different. But the principal is the same: before you draw, set the Rotation and add increments to the current X, Y coords of the stringshape which relocate the stringshape so that when it is rotated about its Rb anchor point the final position will be as you want it, ie., as if the rotation had occurred around your desired rotation point. Then draw the object.

I don't e-mail draw very well, but this may help to visualize things for a simple 90-degree rotation.

oooo_oooo (location of string shape, s.X, s.Y)

oooo_oooo (set X + deltaX, Y + deltaY, to postion stringshape here before rotation)

Now draw. The displayed result of Rb's clockwise rotation about Rb's anchor will be as if the stringshape had rotated about the first character at middle height if you have computed deltaX and deltaY correctly.


Best,

Jack

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to