이 페이지에서

Attractor QML Type

입자를 특정 지점으로 끌어당깁니다. 더 보기...

Import Statement: import QtQuick.Particles
Inherits:

ParticleAffector

속성

상세 설명

다른 어펙터와 마찬가지로, 어트랙터(Attractor)는 영향을 받는 영역을 나타내는 표준 속성인 x, y, width, height를 가지고 있습니다. 어트랙터 항목의 크기와 위치는 영향을 받는 입자를 결정합니다.

유인 지점의 크기는 항상 0x0이며, 위치는 ` pointX ` 및 ` pointY ` 속성으로 지정됩니다.

속성 설명

affectedParameter : enumeration

직접적인 영향을 받는 입자의 속성.

상수설명
Attractor.Position위치
Attractor.Velocity속도
Attractor.Acceleration가속도

pointX : real

‘Attractor’ 항목의 x 좌표에 대한, 인입점의 x 좌표.

pointY : real

어트랙터 항목의 y 좌표에 대한, 어트랙팅 포인트의 y 좌표.

proportionalToDistance : enumeration

인력의 상수( strength )와 입자에서 인력을 가하는 점까지의 거리 간의 관계.

상수설명
Attractor.Constant상수
Attractor.Linear선형
Attractor.InverseLinear역선형
Attractor.Quadratic2차
Attractor.InverseQuadratic역 2차

strength : real

1픽셀 떨어진 물체에 가해질 당기는 힘(단위: 초당).

이 힘은 ` proportionalToDistance ` 속성의 값과 함께, 일정한 거리에 있는 입자에 가해지는 정확한 당김의 강도를 결정합니다.

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