Attractor QML Type

파티클을 특정 지점으로 끌어당깁니다. 더 보기...

Import Statement: import QtQuick.Particles
Inherits:

Affector

속성

상세 설명

다른 어트랙터와 마찬가지로 어트랙터에는 영향을 받는 영역을 나타내는 표준 속성인 x, y, 너비, 높이가 있습니다. Attractor 항목의 크기와 위치에 따라 영향을 받는 파티클이 결정됩니다.

끌어당기는 점의 크기는 항상 0x0이며, 위치는 pointXpointY 프로퍼티로 지정됩니다.

프로퍼티 문서

affectedParameter : enumeration

직접 영향을 받는 파티클의 속성입니다.

Constant설명
Attractor.PositionPosition
Attractor.VelocityVelocity
Attractor.Acceleration가속도

pointX : real

끌어당기기 항목의 x 좌표를 기준으로 한 끌어당기는 지점의 x 좌표입니다.


pointY : real

끌어당기는 점의 y 좌표로, 끌어당기기 항목의 y 좌표를 기준으로 합니다.


proportionalToDistance : enumeration

어트랙션의 strength 와 파티클에서 어트랙션 포인트까지의 거리 사이의 관계입니다.

상수설명
Attractor.Constant상수
Attractor.LinearLinear
Attractor.InverseLinear역선형
Attractor.QuadraticQuadratic
Attractor.InverseQuadratic역 이차

strength : real

1픽셀 떨어진 아이템에 가해지는 초당 단위의 당김력입니다.

강도는 proportionalToDistance 프로퍼티 값과 함께 거리에 있는 파티클에 가해지는 정확한 당김의 양을 결정합니다.


© 2025 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.