Yes, I'm using the 0.5 / 0.6 API. The point I don't really understand is the following: 1. I set the centre of rotation to the center of the object 2. Then I call set_rotation with some argument 3. Then I change the centre of rotation to a corner
On this point, will the object stay rotated the same angle over the center of the object? 4. Then I call set_rotation again On this point, will the resulting position of the object be the result of adding the rotation over the centre and the rotation over the corner? I also need a way to get the 'combined' rotation, so I can save it to a file, and then restore it again. Thank you very much El mié, 16-01-2008 a las 20:53 +0000, Emmanuele Bassi escribió: > On Wed, 2008-01-16 at 21:16 +0100, Alejandro Serrano wrote: > > Hi, > > I need to create an application that allows rotating an object using the > > center as the rotation point and also allowing rotation towards each of > > the four corners. However, I don't know how to do this with Clutter. > > given your other email, I assume you're referring to the 0.5/0.6 API. > > clutter_actor_set_rotation() method is what you need; you can set the > axis, angle and centre of rotation (in the actor's coordinate space). > > you can also set the anchor point of the actor and then use an (0, 0) > rotation centre. > > if you want to use the 0.4 API you should look at the > clutter_actor_rotate_*() family of functions. > > ciao, > Emmanuele. > > -- > Emmanuele Bassi, OpenedHand Ltd. > Unit R, Homesdale Business Centre > 216-218 Homesdale Rd., Bromley - BR12QZ > http://www.o-hand.com > -- To unsubscribe send a mail to [EMAIL PROTECTED]
