本页内容

PhysicsJoint QML Type

接头的基类。更多...

Import Statement: import QtQuick3D.Physics
Since: Qt 6.12

属性

详细说明

这是所有关节的抽象基类。

所有关节均包含两个刚体,每个刚体都有一个位置以及关节相对于其本地方格面的方向。如果其中一个刚体未设置,则该关节将连接到世界坐标系。

注意:至少 有一个物体必须是动态的。

另请参阅 DistanceJoint 、FixedJoint 、PrismaticJoint 、RevoluteJoint 以及SphericalJoint 。

属性文档

bodyA : PhysicsBody* [default: null, since 6.12]

该属性定义了该关节连接到的第一个实体。

该属性在 Qt 6.12 中引入。

bodyB : PhysicsBody* [default: null, since 6.12]

该属性定义了该关节连接的第二个对象。

该属性在 Qt 6.12 中引入。

orientationA : quaternion [default: (1, 0, 0, 0), since 6.12]

关节相对于PhysicsJoint::bodyA 的朝向。

该属性在 Qt 6.12 中引入。

orientationB : quaternion [default: (1, 0, 0, 0), since 6.12]

关节相对于PhysicsJoint::bodyB 的方向。

该属性在 Qt 6.12 中引入。

positionA : vector3d [default: (0, 0, 0), since 6.12]

关节相对于PhysicsJoint::bodyA 的位置。

该属性在 Qt 6.12 中引入。

positionB : vector3d [default: (0, 0, 0), since 6.12]

关节相对于PhysicsJoint::bodyB 的位置。

该属性于 Qt 6.12 版本中引入。

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