PickResult QML Type | Qt Quick 3D 6.1.3

- Qt 6.1
- Qt Quick 3D
- QML Types
- PickResult QML Type
- Qt 6.1.3 Reference Documentation

# PickResult QML Type

Contains the results of a pick. More...

Import Statement: | import QtQuick3D .

- List of all members, including inherited members

## Properties

- distance : float
- objectHit : Model
- scenePosition : vector3d
- uvPosition : vector2d

## Detailed Description

Created as a return object to View3D::pick.

## Property Documentation

[read-only] distance : float

This property holds the distance between the camera and the hit position i.e. the length of the ray.

[read-only] objectHit : Model

This property holds the model object hit by the pick.

[read-only] scenePosition : vector3d

This property holds the scene position of the hit.

[read-only] uvPosition : vector2d

This property holds the UV position of the hit. The UV position is calculated as the normalized local x and y coordinates of the hit point relative to the bounding volume. Useful for further picking against an offscreen-rendered object.