Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SkeletonUtils: added trim #1267

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading