CapsuleShape QML Type
定义一种药丸状的形状。更多...
| Import Statement: | import QtQuick3D.Physics |
| Since: | Qt 6.4 |
| Inherits: |
属性
详细说明
此类型定义了一种胶囊形状。它是一个两端各有一个半球的圆柱体。原点位于胶囊的中心。胶囊通过diameter 进行指定,该参数决定圆柱体和半球的直径;同时通过height 进行指定,该参数决定圆柱体的高度。
注意: 对该形状应用缩放变换时, x分量将用于缩放高度,y分量将用于缩放直径。即使缩放变换是非均匀的,圆柱体始终保持完美的圆形。
另请参阅 Qt Quick 3D 中的物理形状、刚体和关节。
属性文档
diameter : real
此属性定义胶囊的直径
默认值:100
height : real
此属性定义了胶囊的高度
默认值: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.