@@ -27,11 +27,13 @@ function getBoneName( bone, options ) {
2727}
2828
2929/**
30- * Retargets the skeleton from the given source 3D object to the
31- * target 3D object.
30+ * Retargets the skeleton from the given source to the target.
3231 *
33- * @param {Object3D } target - The target 3D object.
34- * @param {Object3D } source - The source 3D object.
32+ * Both `target` and `source` can be a 3D object with a skeleton property (e.g. a skinned mesh)
33+ * or a {@link Skeleton} directly.
34+ *
35+ * @param {Object3D|Skeleton } target - The target object.
36+ * @param {Object3D|Skeleton } source - The source object.
3537 * @param {module:SkeletonUtils~RetargetOptions } options - The options.
3638 */
3739function retarget ( target , source , options = { } ) {
@@ -210,11 +212,13 @@ function retarget( target, source, options = {} ) {
210212}
211213
212214/**
213- * Retargets the animation clip of the source object to the
214- * target 3D object.
215+ * Retargets the animation clip of the source to the target 3D object.
216+ *
217+ * The `source` can be a 3D object with a skeleton property (e.g. a skinned mesh)
218+ * or a {@link Skeleton} directly.
215219 *
216- * @param {Object3D } target - The target 3D object.
217- * @param {Object3D } source - The source 3D object.
220+ * @param {Object3D } target - The target 3D object. Must have a `skeleton` property.
221+ * @param {Object3D|Skeleton } source - The source object.
218222 * @param {AnimationClip } clip - The animation clip.
219223 * @param {module:SkeletonUtils~RetargetOptions } options - The options.
220224 * @return {AnimationClip } The retargeted animation clip.
@@ -481,6 +485,8 @@ function parallelTraverse( a, b, callback ) {
481485 * @property {string } [hip='hip'] - The name of the source's hip bone.
482486 * @property {Vector3 } [hipInfluence=(1,1,1)] - The hip influence.
483487 * @property {number } [scale=1] - The scale.
488+ * @property {Object<string,Matrix4> } [localOffsets] - Per-bone local offset matrices, keyed by bone name.
489+ * @property {Vector3 } [hipPosition] - An additional position offset applied to the hip bone.
484490 **/
485491
486492export {
0 commit comments