@pmndrs/viverse 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animation/index.d.ts +1 -0
- package/dist/animation/index.js +1 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ export declare function fixModelAnimationClip(model: CharacterModel, clip: Anima
|
|
|
7
7
|
export * from './utils.js';
|
|
8
8
|
export * from './default.js';
|
|
9
9
|
export * from './mask.js';
|
|
10
|
+
export * from './bone-map.js';
|
|
10
11
|
export type CharacterAnimationOptions = {
|
|
11
12
|
url: string | DefaultUrl;
|
|
12
13
|
type?: 'mixamo' | 'gltf' | 'vrma' | 'fbx' | 'bvh';
|
package/dist/animation/index.js
CHANGED
|
@@ -181,6 +181,7 @@ export function fixModelAnimationClip(model, clip, clipScene, removeXZMovement)
|
|
|
181
181
|
export * from './utils.js';
|
|
182
182
|
export * from './default.js';
|
|
183
183
|
export * from './mask.js';
|
|
184
|
+
export * from './bone-map.js';
|
|
184
185
|
export function flattenCharacterAnimationOptions(options) {
|
|
185
186
|
return [
|
|
186
187
|
options.url,
|
package/dist/utils.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ export type StartAnimationOptions = {
|
|
|
11
11
|
crossFade?: boolean;
|
|
12
12
|
layer?: string;
|
|
13
13
|
};
|
|
14
|
-
export declare function startAnimation(animation: AnimationAction, currentAnimations: CharacterModel['currentAnimations'], { crossFade, layer, fadeDuration, paused, sync }
|
|
14
|
+
export declare function startAnimation(animation: AnimationAction, currentAnimations: CharacterModel['currentAnimations'], { crossFade, layer, fadeDuration, paused, sync }?: StartAnimationOptions): (() => void) | undefined;
|
|
15
15
|
export declare function shouldJump(physics: BvhCharacterPhysics, lastJump: number, bufferTime?: number): boolean;
|
package/dist/utils.js
CHANGED
|
@@ -8,7 +8,7 @@ export function getIsMobileMediaQuery() {
|
|
|
8
8
|
export function isMobile() {
|
|
9
9
|
return getIsMobileMediaQuery()?.matches ?? false;
|
|
10
10
|
}
|
|
11
|
-
export function startAnimation(animation, currentAnimations, { crossFade = true, layer, fadeDuration = 0.1, paused = false, sync = false }) {
|
|
11
|
+
export function startAnimation(animation, currentAnimations, { crossFade = true, layer, fadeDuration = 0.1, paused = false, sync = false } = {}) {
|
|
12
12
|
animation.reset();
|
|
13
13
|
animation.play();
|
|
14
14
|
animation.paused = paused;
|