In questa pagina

TriangleMeshShape QML Type

Una forma di collisione basata su una mesh 3D. Per saperne di più...

Import Statement: import QtQuick3D.Physics
Since: Qt 6.4
Inherits:

CollisionShape

Proprietà

Descrizione dettagliata

Questo tipo definisce una forma basata sullo stesso formato di file mesh 3D utilizzato da QtQuick3D.Model.

Gli oggetti controllati dalla simulazione fisica non possono utilizzare TriangleMeshShape: può essere utilizzato solo con StaticRigidBody e kinematic bodies. Utilizzare ConvexMeshShape per i corpi dinamici non cinematici.

Vedi anche Forme, corpi e giunti diQt Quick 3D Physics .

Documentazione sulle proprietà

geometry : Geometry [since 6.7]

Questa proprietà definisce la geometria di una mesh utilizzata per definire la forma.

Nota: se sono impostate sia la proprietà "geometry" che " source ", verrà utilizzata solo la prima.

Questa proprietà è stata introdotta in Qt 6.7.

Vedi anche TriangleMeshShape::source.

source : url

Questa proprietà definisce la posizione del file mesh utilizzato per definire la forma.

Internamente, TriangleMeshShape converte la mesh in una struttura dati ottimizzata. Questa conversione può essere eseguita in anticipo. Per ulteriori dettagli, consultare la documentazione di panoramica su "cooking".

Nota: se sono impostate sia la proprietà ` geometry ` che la proprietà `source`, verrà utilizzato solo ` geometry `.

Vedi anche TriangleMeshShape::geometry.

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