本页内容

Joint QML Type

定义骨骼动画层级结构中的一个节点。更多...

Import Statement: import QtQuick3D
Inherits:

Node

属性

详细说明

关节是Skeleton 内部的一个可变换节点,用于骨骼动画。之所以称为“关节”,是因为它可以被视为骨骼中各骨骼之间的连接点。

所有关节都必须包含在骨骼(Skeleton)中,且每个关节都必须有一个指向该骨骼的skeletonRoot 。

Skeleton {
    id: qmlskeleton
    Joint {
        id: joint0
        index: 0
        skeletonRoot: qmlskeleton
        Joint {
            id: joint1
            index: 1
            skeletonRoot: qmlskeleton
        }
    }
}

属性文档

index : int

指定此关节的索引。该索引值用于JointSemantic custom geometry attribute 中。

注意: 在同一个Skeleton 中,索引 值必须是唯一的。

注意: 不能分配负值 。

另请参阅 QQuick3DGeometry::addAttribute 以及Qt Quick 3D - 简单蒙皮示例。

skeletonRoot : Skeleton

指定包含此关节的Skeleton 。

注意: Skeleton 中的所有 Joint必须具有相同的skeletonRoot。否则,动画将无法正常运行。

另请参阅 Skeleton 。

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