ProximityFilter QML Type

対象エンティティから距離閾値内にあるエンティティを選択する。詳細...

Import Statement: import Qt3D.Render 2.8
In C++: QProximityFilter
Inherits:

FrameGraphNode

Status: Deprecated

プロパティ

詳細説明

ProximityFilter は、他のエンティティから指定された距離の閾値内にエンティティが配置されたときに、レンダリングするエンティティを選択するために使用できます。

import Qt3DRender 2.10
...
RenderSetting {
    Viewport {
        CameraSelector {
            camera: mainCamera
            ProximityFilter {
                entity: mainCamera
                distanceThreshold: 50 // select entities within 50m metre radius of mainCamera
            }
        }
    }
}

プロパティの説明

distanceThreshold : real

エンティティがフィルタアウトされる、ターゲットエンティティまでの距離を保持します。


entity : Entity

距離を比較する対象のエンティティを保持する。


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