You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
2.0 KiB
57 lines
2.0 KiB
<!DOCTYPE html>
|
|
<html lang="zh">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<base href="../../../" />
|
|
<script src="page.js"></script>
|
|
<link type="text/css" rel="stylesheet" href="page.css" />
|
|
</head>
|
|
<body>
|
|
<h1>骨架工具([name])</h1>
|
|
|
|
<p class="desc">用于操控 [page:Skeleton]、 [page:SkinnedMesh]、和 [page:Bone] 的实用方法。</p>
|
|
|
|
<h2>方法</h2>
|
|
|
|
<h3>[method:Object3D clone]( [param:Object3D object] )</h3>
|
|
<p>
|
|
克隆给定对象及其后代,确保任何 [page:SkinnedMesh] 实例都与其骨骼正确关联。同时,骨骼也会被克隆,且必须是传递给此方法的物体的后代。而其他数据,如几何形状和材料,是通过引用来实现重复使用的。
|
|
</p>
|
|
|
|
<h3>[method:Object findBoneTrackData]( [param:String name], [param:Array tracks] )</h3>
|
|
<p></p>
|
|
|
|
<h3>[method:Bone getBoneByName]( [param:String name], [param:Skeleton skeleton] )</h3>
|
|
<p></p>
|
|
|
|
<h3>[method:Array getBones]( [param:Skeleton skeleton] )</h3>
|
|
<p></p>
|
|
|
|
<h3>[method:Array getEqualsBonesNames]( [param:Skeleton skeleton], [param:Skeleton targetSkeleton] )</h3>
|
|
<p></p>
|
|
|
|
<h3>[method:SkeletonHelper getHelperFromSkeleton]( [param:Skeleton skeleton] )</h3>
|
|
<p></p>
|
|
|
|
<h3>[method:Bone getNearestBone]( [param:Bone bone], [param:Array names] )</h3>
|
|
<p></p>
|
|
|
|
<h3>[method:Object getSkeletonOffsets]( [param:SkeletonHelper target], [param:SkeletonHelper source], [param:Object options] )</h3>
|
|
<p></p>
|
|
|
|
<h3>[method:this renameBones]( [param:Skeleton skeleton], [param:Array names] )</h3>
|
|
<p></p>
|
|
|
|
<h3>[method:undefined retarget]( [param:SkeletonHelper target], [param:SkeletonHelper source], [param:Object options] )</h3>
|
|
<p></p>
|
|
|
|
<h3>[method:AnimationClip retargetClip]( [param:SkeletonHelper target], [param:SkeletonHelper source], [param:AnimationClip clip], [param:Object options] )</h3>
|
|
<p></p>
|
|
|
|
<h2>源代码</h2>
|
|
|
|
<p>
|
|
[link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/utils/SkeletonUtils.js examples/jsm/utils/SkeletonUtils.js]
|
|
</p>
|
|
</body>
|
|
</html>
|
|
|