骨架工具([name])
用于操控 [page:Skeleton]、 [page:SkinnedMesh]、和 [page:Bone] 的实用方法。
方法
[method:Object3D clone]( [param:Object3D object] )
克隆给定对象及其后代,确保任何 [page:SkinnedMesh] 实例都与其骨骼正确关联。同时,骨骼也会被克隆,且必须是传递给此方法的物体的后代。而其他数据,如几何形状和材料,是通过引用来实现重复使用的。
[method:Object findBoneTrackData]( [param:String name], [param:Array tracks] )
[method:Bone getBoneByName]( [param:String name], [param:Skeleton skeleton] )
[method:Array getBones]( [param:Skeleton skeleton] )
[method:Array getEqualsBonesNames]( [param:Skeleton skeleton], [param:Skeleton targetSkeleton] )
[method:SkeletonHelper getHelperFromSkeleton]( [param:Skeleton skeleton] )
[method:Bone getNearestBone]( [param:Bone bone], [param:Array names] )
[method:Object getSkeletonOffsets]( [param:SkeletonHelper target], [param:SkeletonHelper source], [param:Object options] )
[method:this renameBones]( [param:Skeleton skeleton], [param:Array names] )
[method:undefined retarget]( [param:SkeletonHelper target], [param:SkeletonHelper source], [param:Object options] )
[method:AnimationClip retargetClip]( [param:SkeletonHelper target], [param:SkeletonHelper source], [param:AnimationClip clip], [param:Object options] )
源代码
[link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/utils/SkeletonUtils.js examples/jsm/utils/SkeletonUtils.js]