TriangleMeshShape QML Type

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

import 语句: import QtQuick3D.Physics
Since: Qt 6.4
继承:

CollisionShape

特性

详细描述

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 。使用 ConvexMeshShape for non-kinematic dynamic bodies.

另请参阅 Shapes and Bodies overview documentation .

特性文档编制

geometry : 几何体 [since 6.7]

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

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

This property was introduced in Qt 6.7.

另请参阅 TriangleMeshShape::source .

source : url

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

在内部, TriangleMeshShape 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 会被使用。

另请参阅 TriangleMeshShape::geometry .