Attractor QML Type
For attracting particles towards a specific point. More...
Import Statement: | import QtQuick.Particles 2.12 |
Inherits: |
Properties
- affectedParameter : AffectableParameter
- proportionalToDistance : Proportion
Detailed Description
Note that the size and position of this element affects which particles it affects. The size of the point attracted to is always 0x0, and the location of that point is specified by the pointX and pointY properties.
Note that Attractor has the standard Item x,y,width and height properties. Like other affectors, these represent the affected area. They do not represent the 0x0 point which is the target of the attraction.
Property Documentation
What attribute of particles is directly affected.
- Attractor.Position
- Attractor.Velocity
- Attractor.Acceleration
How the distance from the particle to the point affects the strength of the attraction.
- Attractor.Constant
- Attractor.Linear
- Attractor.InverseLinear
- Attractor.Quadratic
- Attractor.InverseQuadratic
© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.