Skip to content

Commit 77322a7

Browse files
fixes typecheck
1 parent 2f937d8 commit 77322a7

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

example/local-only-multi-user-3d-web-experience/client/src/LocalAvatarClient.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ import defaultAvatarMeshFileUrl from "../../../assets/models/bot.glb";
2727

2828
import { LocalAvatarServer } from "./LocalAvatarServer";
2929

30-
const animationConfig: AnimationConfig = {
31-
airAnimationFileUrl,
32-
idleAnimationFileUrl,
33-
jogAnimationFileUrl,
34-
sprintAnimationFileUrl,
35-
doubleJumpAnimationFileUrl,
30+
const animations = {
31+
airAnimationUrlOrConfig: airAnimationFileUrl,
32+
idleAnimationUrlOrConfig: idleAnimationFileUrl,
33+
jogAnimationUrlOrConfig: jogAnimationFileUrl,
34+
sprintAnimationUrlOrConfig: sprintAnimationFileUrl,
35+
doubleJumpAnimationUrlOrConfig: doubleJumpAnimationFileUrl,
3636
};
3737

3838
// Specify the avatar to use here:
@@ -158,7 +158,7 @@ export class LocalAvatarClient {
158158
sendUpdate: (characterState: CharacterState) => {
159159
localAvatarServer.send(localClientId, characterState);
160160
},
161-
animationConfig,
161+
animationConfig: animations as AnimationConfig,
162162
characterResolve: () => {
163163
return { username: "User", characterDescription };
164164
},

0 commit comments

Comments
 (0)