ProximityFilter QML Type

Select entities which are within a distance threshold of a target entity. More...

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

FrameGraphNode

Status: Deprecated

Properties

Detailed Description

A ProximityFilter can be used to select entities to render when they are placed within a given distance threshold of another entity.

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

Property Documentation

distanceThreshold : real

Holds the distance to the target entity above which entities are filtered out.


entity : Entity

Holds the entity against which we should compare the distance to.


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