PDA

View Full Version : Rotate body in Box2D & QML



folibis
26th December 2013, 12:11
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
}
}