diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2011-08-30 19:25:11 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-08-30 11:37:36 +0200 |
commit | a7923fa19f81ea145f3ce97123567970e88d9df3 (patch) | |
tree | 8377d18a5be9d7b0bd97ce0a90d43e0a579ef2e1 /examples | |
parent | 1025fa7c5247405a3a7289d928addb740afbf95b (diff) |
Add more proportionality modes to PointAttractor
Inverse proportionality is now properly named, direct proportionality
is added, and constant as well (in case they all just draw towards a
point).
Change-Id: I6187c0df908fdf20e2bb0b0a1007ebcc38dd3ac2
Reviewed-on: http://codereview.qt.nokia.com/3868
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/particles/asteroid/blackhole.qml | 2 | ||||
-rw-r--r-- | examples/declarative/particles/spaceexplorer/spaceexplorer.qml | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/particles/asteroid/blackhole.qml b/examples/declarative/particles/asteroid/blackhole.qml index 4a7ce02538..441f4c38d6 100644 --- a/examples/declarative/particles/asteroid/blackhole.qml +++ b/examples/declarative/particles/asteroid/blackhole.qml @@ -149,7 +149,7 @@ Rectangle{ id: gs; x: root.width/2; y: root.height/2; strength: 4000000; system: particles physics: PointAttractor.Acceleration - proportionalToDistance: PointAttractor.Quadratic + proportionalToDistance: PointAttractor.InverseQuadratic } Kill{ system: particles diff --git a/examples/declarative/particles/spaceexplorer/spaceexplorer.qml b/examples/declarative/particles/spaceexplorer/spaceexplorer.qml index 1bb3cdae02..727d711053 100644 --- a/examples/declarative/particles/spaceexplorer/spaceexplorer.qml +++ b/examples/declarative/particles/spaceexplorer/spaceexplorer.qml @@ -276,7 +276,7 @@ Rectangle{ } PointAttractor{ id: gs1; x: vorteX; y: vorteY; strength: 800000; - proportionalToDistance: PointAttractor.Quadratic; + proportionalToDistance: PointAttractor.InverseQuadratic; system: foreground } Kill{ @@ -289,7 +289,7 @@ Rectangle{ PointAttractor{ id: gs2; x: vorteX2; y: vorteY2; strength: 800000; - proportionalToDistance: PointAttractor.Quadratic; + proportionalToDistance: PointAttractor.InverseQuadratic; system: foreground } Kill{ @@ -302,7 +302,7 @@ Rectangle{ PointAttractor{ id: gs3; x: vorteX3; y: vorteY3; strength: 800000; - proportionalToDistance: PointAttractor.Quadratic; + proportionalToDistance: PointAttractor.InverseQuadratic; system: foreground } Kill{ |