1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 18:29:39 +02:00
Oinktube/node_modules/three/examples/jsm/misc/MD2Character.d.ts
2023-12-11 11:59:56 -03:00

40 lines
838 B
TypeScript

import {
Object3D,
Mesh,
Texture,
AnimationMixer
} from '../../../src/Three';
export interface MD2PartsConfig {
baseUrl: string,
body: string,
skins: string[],
weapons: [string, string][],
}
export class MD2Character {
constructor();
scale: number;
animationFPS: number;
root: Object3D;
meshBody: Mesh | null;
meshWeapon: Mesh | null;
skinsBody: Texture[];
skinsWeapon: Texture[];
weapons: Mesh[];
activeAnimation: string | null;
mixer: AnimationMixer | null;
loadCounter: number;
onLoadComplete(): void;
loadParts( config: MD2PartsConfig ): void;
setPlaybackRate( rate: number ): void;
setWireframe( wireframeEnabled: boolean ): void;
setSkin( index: number ): void;
setWeapon( index: number ): void;
setAnimation( clipName: string ): void;
syncWeaponAnimation(): void;
update( delta: number ): void;
}