Affector QML Type
논리 파티클의 수명이 다할 때까지 언제든지 파티클의 속성에 변경 사항을 적용합니다. 더 보기...
Import Statement: | import QtQuick.Particles |
Inherits: |
속성
- acceleration : StochasticDirection
- position : StochasticDirection
- relative : bool
- velocity : StochasticDirection
신호
- affectParticles(Array particles, real dt)
상세 설명
커스텀 어펙터는 자바스크립트에서 직접 파티클의 프로퍼티를 조작합니다.
프로퍼티 문서
acceleration : StochasticDirection |
영향을 받는 파티클의 가속도가 이 방향으로 설정됩니다.
position : StochasticDirection |
영향을 받는 파티클의 위치는 ParticleSystem 를 기준으로 이 방향으로 설정됩니다. 방향을 점으로 해석할 때는 ParticleSystem 의 0,0에 밑변이 있고 끝이 지정된 위치가 되는 화살표라고 생각하면 됩니다.
relative : bool |
영향을 받는 파티클의 기존 위치/속도/가속도를 새 파티클에 추가할지 여부입니다.
기본값은 참입니다.
velocity : StochasticDirection |
영향을 받는 파티클의 속도는 이 방향으로 설정됩니다.
신호 문서
affectParticles(Array particles, real dt) |
이 신호는 파티클이 영향을 받도록 선택되었을 때 방출됩니다. particles 는 직접 조작할 수 있는 파티클 오브젝트의 배열입니다.
dt 는 마지막으로 영향을 받은 이후 시간입니다. 궤적 조작을 실시간으로 정규화하려면 dt 을 사용합니다.
참고: 자바스크립트는 실행 속도가 느리므로 대용량 파티클 시스템에서는 사용하지 않는 것이 좋습니다.
참고: 해당 핸들러는 onAffectParticles
입니다.
© 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.