Qt Quick 3D 物理
Qt Quick 3D 物理模块提供了一个用于物理模拟的高级 API。它支持模拟交互式刚体,以及用于检测重叠的静态网格体和非碰撞体。每个被模拟的物体都可以拥有自己的物理属性,例如质量、密度和摩擦力。

使用该模块
QML API
可通过 `QtQuick3D.Physics ` 导入语句使用该模块的 QML 类型。要使用这些类型,请在您的 .qml 文件中添加以下导入语句:
import QtQuick3D.Physics这是一个纯 QML 模块,不提供 C++ API。
文章与指南
示例
了解Qt Quick 3D 物理引擎功能的最佳方式就是查看这些示例:
参考
注意: 与技术预览版 API(Qt 6.4 版本)相比,API发生了 变化。有关差异,请参阅《Qt Quick 3D 物理 API 与技术预览版的差异》。
相关模块
许可与归属
Qt Quick 3D Physics 根据The Qt Company 提供的商业许可证提供。此外,它还根据GNU 通用公共许可证(第 3 版)提供。有关更多详细信息,请参阅Qt 许可。
此外,Qt Quick 3D 物理引擎包含以下宽松许可协议下的第三方模块:
BSD 3 条款“新”或“修订”许可证 |
© 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.