|
@@ -5,12 +5,10 @@ import Qt.labs.settings 1.0
|
|
|
ImageBoxBody {
|
|
|
id: picture
|
|
|
|
|
|
- property bool freefall: false
|
|
|
+ onYChanged: y > floor.y && picture.destroy()
|
|
|
|
|
|
- onYChanged: freefall && ((y <= floor.y) || picture.destroy())
|
|
|
-
|
|
|
- density: 0.01
|
|
|
- friction: 1.0
|
|
|
+ density: 1.0
|
|
|
+ friction: 0.0
|
|
|
fixedRotation: parent.fixedRotation
|
|
|
world: parent.physicsWorld
|
|
|
bodyType: Body.Dynamic
|