Hi,

I'm currently toying with pyclutter, and I tried to use
Clutter.BehaviourRotate in one little program.

I custom a cube,  and want it rotate on x,y,z axis, like this:
animation = self.animate(clutter.EASE_OUT_BOUNCE, 1500,
                            "rotation-angle-y", angle, #90
                            "fixed::rotation-center-y", self._vertex_t,
                            "fixed::reactive", False)
after rotation, z axis is still the same, but x axis is point to reverse z
axis.
Ths two axes point to the same direction.I dont know is a bug or an improper
usage?

Then, i try text_rotate.c, set loop is false,  change rotation angle to 90,
then,
connect the "completed" signal to the timeline, in callback add another
rotation.
Change the two rotation's axis, i find the appearance as follow:
        rotation             |                 after rotation
axis             angle     |       x            y             z
y                 90          |      -z           y             z
x                 90         |       x            y             z
z                 90         |       -y           x             z

This problem has worried me several days.I want to understand to the truth
about rotation.

Thanks

Reply via email to