aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/particles/asteroid/blackhole.qml
diff options
context:
space:
mode:
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