IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

ProximityFilter QML Type

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

This type was introduced in Qt 5.10.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

ProximityFilter QML Type

  • Import Statement: import Qt3D.Render 2.4

  • Since:: Qt 5.10

  • Inherits:: FrameGraphNode

  • Instantiates:: QProximityFilter

Detailed Description

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

 
Sélectionnez
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.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+