Turn linearVelocity into a method
It makes more sense that setting linearVelocity is a method since it is
something you want to set similar to applying an impulse or a force. At
the moment it is also never updated from the actual velocity of the
body so the property is broken in its current state.
This also changes the impeller example to use linearVelocity instead of
adding an impulse since that was buggy when running with low time steps.
Pick-to: 6.5
Change-Id: Ibc8f9ad51ac75fafc4902c3720bdd9783650fce5
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io>
| commit | 35983767069b95172bc753ef90383e48fe3f1b37 |
| parent | 0acca63c1ec0fd71a443f2810173529099072f08 |
| author | Jonas Karlsson <jonas.karlsson@qt.io> |
| committer | Jonas Karlsson <jonas.karlsson@qt.io> |
| commit time | Mon, 20 Feb 2023 11:36:32 +0100 |
- M examples/quick3dphysics/cannon/main.qml
- M examples/quick3dphysics/impeller/doc/src/qtquick3dphysics-examples-impeller.qdoc
- M examples/quick3dphysics/impeller/main.qml
- M examples/quick3dphysics/mass/main.qml
- M src/quick3dphysics/designer/DynamicRigidBodySection.qml
- M src/quick3dphysics/doc/src/qtquick3dphysics-changes-6-5.qdoc
- M src/quick3dphysics/qrigidbody.cpp
- M src/quick3dphysics/qrigidbody_p.h