ProximityFilter QML Type | Qt 3D 5.12.8

Qt 5.12 | Qt 3D | QML Types | ProximityFilter QML Type

Qt 5.12.8 Reference Documentation

# ProximityFilter QML Type

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

Import Statement: | import Qt3D.Render 2.12
Since: | Qt 5.10
Instantiates: | QProximityFilter
Inherits: | FrameGraphNode

- List of all members, including inherited members

## Properties

- distanceThreshold : real
- entity : Entity

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