이 페이지에서

TargetDirection3D QML Type

목표 위치를 향한 방향을 지정하기 위해 사용됩니다. 더 보기...

Import Statement: import QtQuick3D.Particles3D
Since: Qt 6.2
Inherits:

Direction3D

속성

상세 설명

이 요소는 대상 위치를 향한 입자 방출 속도를 설정합니다.

예를 들어, (100, 0, 0) 위치로 10~20 사이의 무작위 크기를 가진 입자를 방출하려면:

ParticleEmitter3D {
    ...
    velocity: TargetDirection3D {
        position: Qt.vector3d(100, 0, 0)
        normalized: true
        magnitude: 15.0
        magnitudeVariation: 5.0
    }
}

속성 설명

magnitude : real

이 속성은 초당 위치 변화의 크기를 정의합니다. 음수 값일 경우, position 와 반대 방향으로 가속됩니다. normalized 가 false인 경우, 이 값에 목표 위치까지의 거리가 곱해집니다.

기본값은 1.0 입니다.

magnitudeVariation도 참조하십시오 .

magnitudeVariation : real

이 속성은 초당 위치 변화량의 크기를 정의합니다. ‘ normalized ’이 false인 경우, 이 값에 목표 위치까지의 거리가 곱해집니다.

기본값은 0.0 입니다.

magnitude항목도 참조하십시오 .

normalized : bool

이 속성은 position 까지의 거리를 정규화된 것으로 간주할지 여부를 정의합니다. 이 값이 false인 경우, position 까지의 거리가 입자 속도의 크기에 영향을 미칩니다. true로 설정하면 거리가 정규화되며, 속도의 크기는 magnitude 및 magnitudeVariation 에서만 결정됩니다.

기본값은 false 입니다.

magnitude 및 magnitudeVariation도 참조하십시오 .

position : vector3d

이 속성은 파티클의 목표 위치를 정의합니다.

기본값은 (0, 0, 0) (이미터의 중심)입니다.

positionVariation도 참조하십시오 .

positionVariation : vector3d

이 속성은 입자 타깃의 위치 변동을 정의합니다.

기본값은 ` (0, 0, 0) `(변동 없음)입니다.

position항목도 참조하십시오 .

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