TriangleMeshShape QML Type
基于三维网格的碰撞形状。更多
Import Statement: | import QtQuick3D.Physics |
Since: | Qt 6.4 |
Inherits: |
属性
详细说明
该类型基于与QtQuick3D.Model 相同的 3D 网格文件格式定义形状。
由物理模拟控制的对象不能使用 TriangleMeshShape:它只能与StaticRigidBody 和kinematic bodies 一起使用。对于非动力学动态体,请使用ConvexMeshShape 。
另请参阅 " 形状 "和 "体 "概述文档。
属性文档
geometry : Geometry |
此属性定义用于定义形状的网格几何体。
注: 如果同时设置了几何体和source 属性,则只使用几何体。
此属性在 Qt 6.7 中引入。
另请参阅 TriangleMeshShape::source 。
source : url |
该属性定义了用于定义形状的网格文件的位置。
在内部,TriangleMeshShape 会将网格转换为优化的数据结构。这种转换可以提前完成。详情请查看烹饪概述文档。
另请参阅 TriangleMeshShape::geometry 。
© 2025 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.