本页内容

CollisionShape QML Type

碰撞形状的基础类型。更多...

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

Node

Inherited By:

BoxShape, CapsuleShape, ConvexMeshShape, HeightFieldShape, PlaneShape, SphereShape, and TriangleMeshShape

属性

详细说明

这是所有碰撞形状的基础类型。碰撞形状用于定义物体的物理形状和范围,以满足物理模拟的需求。

另请参阅 Qt Quick 3D 中的物理形状、物体和关节。

属性文档

enableDebugDraw : bool

此属性用于绘制形状的调试视图。

默认值:false

© 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.