이 페이지에서

Affector QML Type

논리 입자의 수명 주기 중 어느 시점에서든 해당 입자의 속성에 변경 사항을 적용합니다. 더 보기...

Import Statement: import QtQuick.Particles
Inherits:

ParticleAffector

속성

신호

상세 설명

사용자 정의 어펙터는 JavaScript에서 파티클의 속성을 직접 조작합니다.

속성 설명서

acceleration : StochasticDirection

영향을 받는 입자들의 가속 방향은 이 방향으로 설정됩니다.

position : StochasticDirection

영향을 받는 입자의 위치는 원점( ParticleSystem)을 기준으로 이 방향으로 설정됩니다. 방향을 점으로 해석할 때는, 화살표의 밑부분이 좌표계( ParticleSystem )의 (0,0)에 있고, 끝부분이 지정된 위치에 있는 것으로 상상해 보십시오.

relative : bool

영향을 받는 입자의 기존 위치/속도/가속도가 새로운 값에 더해질지 여부.

기본값은 true입니다.

velocity : StochasticDirection

영향을 받는 입자의 속도는 이 방향으로 설정됩니다.

신호 설명서

affectParticles(Array particles, real dt)

이 신호는 영향을 받을 입자가 선택되었을 때 발생합니다. ` particles `는 직접 조작할 수 있는 입자 객체 배열입니다.

dt 는 마지막으로 효과가 적용된 시점부터 경과한 시간입니다. dt 를 사용하여 궤적 조작을 실시간으로 정규화하십시오.

참고: JavaScript는 실행 속도가 느리므로, 파티클 수가 많은 시스템에서는 이 기능을 사용하지 않는 것이 좋습니다.

참고: 이에 대응하는핸들러는 onAffectParticles 입니다.

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