aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/particles/asteroid/blackhole.qml
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-06-08 13:19:56 +1000
committerAlan Alpert <alan.alpert@nokia.com>2011-06-08 13:28:21 +1000
commit1f88f2ceedf00f96e2491ecdd1c655b0f12f3632 (patch)
tree1900da1a3793da99f9601762d337cf82dc4701ce /examples/declarative/particles/asteroid/blackhole.qml
parent984f21f18d1a3981e7363df467ff2e24e69aa847 (diff)
Immense Particles Refactor Part C
Demos work again (also, the examples I missed). Added an example launcher for particles.
Diffstat (limited to 'examples/declarative/particles/asteroid/blackhole.qml')
-rw-r--r--examples/declarative/particles/asteroid/blackhole.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/declarative/particles/asteroid/blackhole.qml b/examples/declarative/particles/asteroid/blackhole.qml
index f2c9d0a98d..1bc406b00c 100644
--- a/examples/declarative/particles/asteroid/blackhole.qml
+++ b/examples/declarative/particles/asteroid/blackhole.qml
@@ -98,6 +98,7 @@ Rectangle{
image: "content/star.png"
color: "white"
colorVariation: 0.1
+ alpha: 0
}
ImageParticle{
id: roids
@@ -144,9 +145,11 @@ Rectangle{
colorVariation: 0.2
}
- GravitationalSingularity{
+ PointAttractor{
id: gs; x: root.width/2; y: root.height/2; strength: 4000000;
system: particles
+ physics: PointAttractor.Acceleration
+ proportionalToDistance: PointAttractor.Quadratic
}
Kill{
system: particles