download
raw
809 Bytes
import { Object3D, Mesh, Texture, AnimationMixer } from 'three'
export interface MD2PartsConfig {
baseUrl: string
body: string
skins: string[]
weapons: Array<[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
}

Xet Storage Details

Size:
809 Bytes
·
Xet hash:
9e6d4df63f63f0607b1f22ec8cd219edf05c45a40e9d02dac08a3e9b2ce09bfa

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.