TriangleMeshShape QML Type

A collision shape based on a 3D mesh. More...

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

CollisionShape

Properties

Detailed Description

This type defines a shape based on the same 3D mesh file format used by QtQuick3D.Model.

Objects that are controlled by the physics simulation cannot use TriangleMeshShape: It can only be used with StaticRigidBody and kinematic bodies. Use ConvexMeshShape for non-kinematic dynamic bodies.

See also Shapes and Bodies overview documentation.

Property Documentation

geometry : Geometry [since 6.7]

This property defines the geometry of a mesh used to define the shape.

Note: If both the geometry and source properties are set then only geometry will be used.

This property was introduced in Qt 6.7.

See also TriangleMeshShape::source.


source : url

This property defines the location of the mesh file used to define the shape.

Internally, TriangleMeshShape converts the mesh to an optimized data structure. This conversion can be done in advance. See the cooking overview documentation for details.

Note: If both the geometry and source properties are set then only geometry will be used.

See also TriangleMeshShape::geometry.


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