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

RayCaster QML Type

used to perform ray casting tests in 3d world coordinates.

This type was introduced in Qt 5.11.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

RayCaster QML Type▲

  • Import Statement: import Qt3D.Render 2.15

  • Since: Qt 5.11

  • Instantiates:: QRayCaster

Detailed Description▲

The 3d ray is defined by its origin, direction and length. It will be affected by the transformations applied to the entity it belongs to.

Ray casting tests will be performed every frame as long as the component is enabled. The hits property will be updated with the list of intersections.

See Also▲

Property Documentation▲

 

direction : vector3D▲

Holds the direction of the 3D ray. This should be a unit vector.

length : real▲

Holds the length of the 3d ray.

origin : vector3d▲

Holds the origin of the 3D ray in local coordinates.

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