@needle-tools/engine
Version:
Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in
20 lines (19 loc) • 704 B
TypeScript
import { Object3D } from "three";
import { Context } from "../engine/engine_setup.js";
export declare class AvatarModel {
root: Object3D;
head: Object3D;
leftHand: Object3D | null;
rigthHand: Object3D | null;
get isValid(): boolean;
constructor(root: Object3D, head: Object3D, leftHand: Object3D | null, rigthHand: Object3D | null);
}
export declare class AvatarLoader {
private readonly avatarRegistryUrl;
getOrCreateNewAvatarInstance(context: Context, avatarId: string | Object3D): Promise<AvatarModel | null>;
private loadAvatar;
private cacheModel;
private findAvatar;
private findAvatarPart;
private handleCustomAvatarErrors;
}