ProximityFilter QML Type

选择与目标实体距离在阈值范围内的实体。更多

Import Statement: import Qt3D.Render 2.9
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.