Joint QML Type

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

Import Statement: import QtQuick3D
Inherits:

Node

属性

详细说明

关节是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::addAttributeQt Quick 3D - 简单蒙皮示例


skeletonRoot : Skeleton

指定包含此关节的Skeleton

注意: Skeleton 中的所有Joint必须具有相同的骨骼根(skeletonRoot)。否则,动画将被破坏。

另请参阅 Skeleton


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