BoxShape QML Type
定义一个盒形碰撞形状。更多...
| Import Statement: | import QtQuick3D.Physics |
| Since: | Qt 6.4 |
| Inherits: |
属性
- extents : vector3d
详细说明
此类型定义了一个盒状碰撞形状。原点位于盒子的中心。
注意: 非均匀缩放变换将 分别对 x、y 和 z 方向进行缩放。但是,将非均匀缩放与旋转结合使用可能会导致剪切变形,而这种变形不会应用于 BoxShape:它始终是一个直线型矩形盒。
另请参阅 Qt Quick 3D 中的物理形状、刚体和关节。
属性文档
extents : vector3d
该属性定义了盒子在 x、y 和 z 方向上的范围。
默认值:(100, 100, 100)
© 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.