Skip to content

Commit

Permalink
SkeletonUtils: added trim (#1267)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Sep 25, 2024
1 parent 8438c0c commit 9602b1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions types/three/examples/jsm/utils/SkeletonUtils.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,19 @@ export interface RetargetOptions {
hipPosition?: Vector3 | undefined;
}

declare function retarget(target: Object3D | Skeleton, source: Object3D | Skeleton, options: {}): void;
declare function retarget(target: Object3D | Skeleton, source: Object3D | Skeleton, options?: RetargetOptions): void;

export interface RetargetClipOptions extends RetargetOptions {
useFirstFramePosition?: boolean | undefined;
fps?: number | undefined;
trim?: [number, number] | undefined;
}

declare function retargetClip(
target: Skeleton | Object3D,
source: Skeleton | Object3D,
clip: AnimationClip,
options: {},
options?: RetargetClipOptions,
): AnimationClip;

declare function clone(source: Object3D): Object3D;
Expand Down

0 comments on commit 9602b1d

Please sign in to comment.