SkeletonUtils.d.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. import { AnimationClip, Bone, Matrix4, Object3D, Skeleton, SkeletonHelper } from '../../../src/Three';
  2. export namespace SkeletonUtils {
  3. export function retarget( target: Object3D | Skeleton,
  4. source: Object3D | Skeleton,
  5. options: {} ): void;
  6. export function retargetClip( target: Skeleton | Object3D,
  7. source: Skeleton | Object3D,
  8. clip: AnimationClip,
  9. options: {} ): AnimationClip;
  10. export function getHelperFromSkeleton( skeleton: Skeleton ): SkeletonHelper;
  11. export function getSkeletonOffsets( target: Object3D | Skeleton,
  12. source: Object3D | Skeleton,
  13. options: {} ): Matrix4[];
  14. export function renameBones( skeleton: Skeleton, names: {} ): any;
  15. export function getBones( skeleton: Skeleton | Bone[] ): Bone[];
  16. export function getBoneByName( name: string, skeleton: Skeleton ): Bone;
  17. export function getNearestBone( bone: Bone, names: {} ): Bone;
  18. export function findBoneTrackData( name: string, tracks: any[] ): {};
  19. export function getEqualsBonesNames( skeleton: Skeleton, targetSkeleton: Skeleton ): string[];
  20. export function clone( source: Object3D | Skeleton ): Object3D | Skeleton;
  21. }