How can I animate body rotation about specified fixed point in QML with Box2D?
with QML animation it make collision crazy:
Body {
id: centerWall
fixedRotation: true
bodyType: Body.Kinematic
transformOrigin: Body.Center
PropertyAnimation {
target: centerWall
property: "rotation"
from: 0
to: 360
running: true
loops: Animation.Infinite
duration: 10000
}
}
Body {
id: centerWall
fixedRotation: true
bodyType: Body.Kinematic
transformOrigin: Body.Center
PropertyAnimation {
target: centerWall
property: "rotation"
from: 0
to: 360
running: true
loops: Animation.Infinite
duration: 10000
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks