File tree Expand file tree Collapse file tree
example/local-only-multi-user-3d-web-experience/client/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,12 +27,12 @@ import defaultAvatarMeshFileUrl from "../../../assets/models/bot.glb";
2727
2828import { 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 } ,
You can’t perform that action at this time.
0 commit comments