Hi,
I’m currently porting a game made in QML for Meego to Felgo. Most things works fine but I have some issues with the “card flip”-animations that were implemented using Rotation element around y axis. I made a small test application to test the Rotation element and it seems to work fine to rotate an object around z axis, but not around x or y.
Here is my code:
import VPlay 1.0
import QtQuick 1.1
GameWindow {
activeScene: scene
width: 640
height: 960
Scene {
id: scene
width: 320
height: 480
Rectangle {
anchors.fill: parent
color: "black"
}
Rectangle{
id: rectangle
width: 100
height: 100
color: "red"
anchors.centerIn: parent
transform: Rotation {
id: rotation
origin.x: rectangle.width/2
origin.y: rectangle.height/2
axis.x: 0; axis.y: 1; axis.z: 0 // set axis.y to 1 to rotate around y-axis
angle: 45 // the default angle
}
}
}
}
Will this be fixed anytime soon?
Thank you!
– Mathias