In questa pagina

RayCaster QML Type

utilizzato per eseguire test di ray casting nelle coordinate del mondo 3D. Altro...

Import Statement: import Qt3D.Render 2.12
In C++: QRayCaster
Status: Deprecated

Questo tipo è deprecato. Si sconsiglia vivamente di utilizzarlo nel nuovo codice.

Proprietà

Descrizione dettagliata

Il raggio 3D è definito dall'origine, dalla direzione e dalla lunghezza. Sarà influenzato dalle trasformazioni applicate all'entità a cui appartiene.

I test di ray casting verranno eseguiti in ogni fotogramma fintanto che il componente è abilitato. La proprietà "hits" verrà aggiornata con l'elenco delle intersezioni.

Vedi anche AbstractRayCaster, ScreenRayCaster e NoPicking.

Documentazione delle proprietà

direction : vector3D

Contiene la direzione del raggio 3D. Dovrebbe trattarsi di un vettore unitario.

length : real

Contiene la lunghezza del raggio 3d.

origin : vector3d

Contiene l'origine del raggio 3D nelle coordinate locali.

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