ConvexMeshShape QML Type

A convex collision shape based on a 3D mesh. 更多...

import 語句: import QtQuick3D.Physics
Since: Qt 6.4
繼承:

CollisionShape

特性

詳細描述

This type defines a convex shape based on the same 3D mesh file format used by QtQuick3D.Model . If the mesh is not convex, the convex hull of the mesh will be used.

另請參閱 Shapes and Bodies overview documentation and TriangleMeshShape .

特性文檔編製

geometry : 幾何體 [since 6.7]

This property defines the geometry of a mesh used to define the shape. If the mesh is not convex, the convex hull of the mesh will be used. The maximum number of faces and vertices is 255: If the mesh is more detailed than that, it will be simplified.

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

該特性在 Qt 6.7 引入。

另請參閱 ConvexMeshShape::source .

source : url

This property defines the location of the mesh file used to define the shape. If the mesh is not convex, the convex hull of the mesh will be used. The maximum number of faces and vertices is 255: If the mesh is more detailed than that, it will be simplified.

在內部, ConvexMeshShape converts the mesh to an optimized data structure. This conversion can be done in advance. See the cooking overview documentation 瞭解細節。

注意: If both the geometry and source properties are set then only geometry 會被使用。

另請參閱 ConvexMeshShape::geometry .