@realsee/five
Version:
Realsee Renderer SDK
18 lines (17 loc) • 490 B
TypeScript
import * as THREE from "three";
/**
* GLTF 对象
*/
declare class GLTFObject extends THREE.Group {
needsRender: boolean;
/**
* mixer 为对应当前对象的动画混合器
* @description
* 通过 `gltf.animations` 可以获取动画帧。
* 通过 `gltf.scene.mixer.clipAction(gltf.animations[0]).play()` 即可播放动画。
*/
mixer: THREE.AnimationMixer;
constructor(rootObject?: THREE.Object3D);
clone(): this;
}
export { GLTFObject };