本页内容

SphereShape QML Type

定义一个球形碰撞形状。更多...

Import Statement: import QtQuick3D.Physics
Since: Qt 6.4
Inherits:

CollisionShape

属性

详细说明

此类型定义了一个球形。原点位于球的中心。

注意: 对该形状应用缩放变换时, 将使用 x 分量来缩放球体的直径。即使使用非均匀缩放变换,生成的形状也将是完美的圆形。

属性文档

diameter : 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.