本页内容

Qt Quick 3D Physics QML Types

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

import QtQuick3D.Physics

QML 类型

BoxShape

定义了一个矩形碰撞形状

CapsuleShape

定义一个药丸状的形状

CharacterController

控制角色的运动

CollisionShape

碰撞形状的基类

ConvexMeshShape

基于 3D 网格的凸形碰撞形状

DistanceJoint

距离关节

DynamicRigidBody

可移动或被移动的物理体

FixedJoint

固定关节

HeightFieldShape

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

PhysicsBody

所有具体物理体的基类

PhysicsJoint

关节的基础类型

PhysicsMaterial

定义物体的物理材质

PhysicsNode

物理场景中所有对象的基础类型

PhysicsWorld

控制物理模拟

PlaneShape

定义无限平面的碰撞形状

PrismaticJoint

棱柱形关节

RevoluteJoint

旋转关节

SphereShape

定义一个球形碰撞形状

SphericalJoint

球形关节

StaticRigidBody

静止的物理体

TriangleMeshShape

基于3D网格的碰撞形状

TriggerBody

当物体进入指定体积时触发通知

已弃用的 QML 类型

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