Joint QML Type

Defines a node in a skeletal animation hierarchy. 更多...

import 語句: import QtQuick3D
繼承:

Node

特性

詳細描述

A joint is a transformable node inside a Skeleton , used for skeletal animation . It is called a "joint" because it can be seen as a joint between the bones of a skeleton.

All the joints must be contained inside a Skeleton, and each joint must have a skeletonRoot pointing back to that skeleton.

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

特性文檔編製

index : int

Specifies the index of this joint. This index value is used in the JointSemantic custom geometry attribute .

注意: Index values must be unique within the same Skeleton .

注意: Negative values cannot be assigned.

另請參閱 QQuick3DGeometry::addAttribute and Qt Quick 3D - 簡單濛皮範例 .

skeletonRoot : Skeleton

Specifies the Skeleton that contains this joint.

注意: 所有 Joint s in the Skeleton must have the same skeletonRoot. If not, the animation will be broken.

另請參閱 Skeleton .