1 在ThreeJS中直接设置Fbx模型的某个关节位移旋转

示例代码如下:

fbxModel.traverse(function (child) {
    // 如果子节点为骨骼
    if(child.isBone)
    {
        boneNum +=1;
        if(child instanceof THREE.Bone)
        {
            var bonename = child.name;
            if(bonename == "hip")
            {
                // 设置位移
                child.position.set(0.0,0.0,0.0);
                // 设置旋转
                child.quaternion.set(0.0,0.0,0.0,1.0);
            }
        }
    }
});