Qt Quick 3D Physics QML Types

Qt Quick 3D 物理学提供了以下 QML 类型:

QtQuick3D.Physics QML 类型

使用以下语句导入QtQuick3D.Physics 模块:

import QtQuick3D.Physics

BoxShape

定义一个盒状碰撞形状

CapsuleShape

定义类似药丸的形状

CharacterController

控制角色的运动

CollisionShape

碰撞形状的基本类型

ConvexMeshShape

基于三维网格的凸形碰撞形状

DynamicRigidBody

可移动或被移动的实体

HeightFieldShape

高程由高度贴图定义的碰撞形状

PhysicsBody

所有具体物理体的基本类型

PhysicsMaterial

定义物体的物理材质

PhysicsNode

物理场景中所有物体的基本类型

PhysicsWorld

控制物理模拟

PlaneShape

定义无限平面的碰撞形状

SphereShape

定义球形碰撞形状

StaticRigidBody

不动的物理体

TriangleMeshShape

基于 3D 网格的碰撞形状

TriggerBody

物体进入给定体积时的报告

QtQuick3D.Physics.Helpers QML 类型

使用以下语句导入QtQuick3D.Helpers 模块:

import QtQuick3D.Physics.Helpers

CapsuleGeometry

用于生成胶囊模型的几何体

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