Fold Move into Affector
authorAlan Alpert <alan.alpert@nokia.com>
Thu, 20 Oct 2011 07:48:40 +0000 (17:48 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 24 Oct 2011 10:36:29 +0000 (12:36 +0200)
commitd3ed664d23197397e3f140986841ea188cde8a65
tree31a170320cba83a9c3a8b883e97dcae351797ad3
parent34cefb69b3f36d7eed9f50a2190459fbae0681de
Fold Move into Affector

Since 'Move' was just a generic physics property affector, it makes
sense to fold it into the generic affector as an easier way of
implementing the common case of custom affector (and much faster, since
it doesn't hit JS).

For completeness in the Move behavior, 'once' now applies the effect of
affectors over a second in that one time, so as to avoid exposing the
simulation tick. This allows once to have actual meaning for continous
affectors.

Gravity is also going to be kept around as a convenience (although it
will change slightly), so just removing its deprecation warning.

Change-Id: Ieb52f8990445fe95f94070175a0f9beb6686324b
Reviewed-by: Martin Jones <martin.jones@nokia.com>
13 files changed:
examples/declarative/particles/affectors/gravity.qml
examples/declarative/particles/affectors/move.qml
src/declarative/particles/particles.pri
src/declarative/particles/qsgcustomaffector.cpp
src/declarative/particles/qsgcustomaffector_p.h
src/declarative/particles/qsggravity.cpp
src/declarative/particles/qsgmove.cpp [deleted file]
src/declarative/particles/qsgmove_p.h [deleted file]
src/declarative/particles/qsgparticleaffector.cpp
src/declarative/particles/qsgparticleaffector_p.h
src/declarative/particles/qsgparticlesmodule.cpp
tests/auto/particles/qsgcustomaffector/data/move.qml [new file with mode: 0644]
tests/auto/particles/qsgcustomaffector/tst_qsgcustomaffector.cpp