|
@@ -20,13 +20,14 @@
|
|
|
|
|
|
<h2>Example</h2>
|
|
|
|
|
|
+ <p>
|
|
|
[example:webgl_animation_skinning_blending animation / skinning / blending]<br />
|
|
|
[example:webgl_animation_skinning_morph animation / skinning / morph]<br />
|
|
|
[example:webgl_loader_bvh loader / bvh ]
|
|
|
+ </p>
|
|
|
|
|
|
<code>
|
|
|
-var helper = new THREE.SkeletonHelper( mesh );
|
|
|
-helper.material.linewidth = 3;
|
|
|
+var helper = new THREE.SkeletonHelper( skinnedMesh );
|
|
|
scene.add( helper );
|
|
|
</code>
|
|
|
|
|
@@ -35,13 +36,12 @@ scene.add( helper );
|
|
|
<h2>Constructor</h2>
|
|
|
|
|
|
|
|
|
- <h3>[name]( object )</h3>
|
|
|
+ <h3>[name]( [param:Object3D object] )</h3>
|
|
|
<p>
|
|
|
- object -- can be any object that has an array of [page:Bone Bone]s as a sub object. <br />
|
|
|
- For example, a [page:Skeleton Skeleton] or a [page:SkinnedMesh SkinnedMesh].
|
|
|
+ object -- Usually an instance of [page:SkinnedMesh]. However, any instance of [page:Object3D] can be used if it represents
|
|
|
+ a hierarchy of [page:Bone Bone]s (via [page:Object3D.children]).
|
|
|
</p>
|
|
|
|
|
|
-
|
|
|
<h2>Properties</h2>
|
|
|
|
|
|
<h3>[property:Array bones]</h3>
|
|
@@ -49,12 +49,11 @@ scene.add( helper );
|
|
|
The list of bones that the helper renders as [page:Line Lines].
|
|
|
</p>
|
|
|
|
|
|
- <h3>[property:Object root]</h3>
|
|
|
+ <h3>[property:Object3D root]</h3>
|
|
|
<p>
|
|
|
The object passed in the constructor.
|
|
|
</p>
|
|
|
|
|
|
-
|
|
|
<h2>Source</h2>
|
|
|
|
|
|
<p>
|