@vrspace/babylonjs
Version:
vrspace.org babylonjs client
28 lines (27 loc) • 874 B
TypeScript
export class BotController {
constructor(worldManager: any, avatar: any);
/** Timestamp of last change */
lastChange: number;
/** After not receiving any events for this many millis, idle animation starts */
idleTimeout: number;
lastAnimation: any;
worldManager: any;
world: any;
scene: any;
avatar: any;
vrObject: any;
animation: AvatarAnimation;
animationEnd: (animation: any) => void;
voice: any;
processVoices(voices: any): void;
/**
* Create timer for idle animation, if it doesn't exist.
* CHECKME copied from AvatarController
*/
setupIdleTimer(): void;
idleTimerId: any;
startAnimation(animation: any, loop?: boolean): void;
animationEnded(animation: any): void;
processChanges(obj: any, changes: any): void;
}
import { AvatarAnimation } from './avatar-animation.js';