UNPKG

three-stdlib

Version:

stand-alone library of threejs examples

26 lines (18 loc) 623 B
import { Group, Object3D } from 'three' import { XRHandPrimitiveModel, XRHandPrimitiveModelOptions } from './XRHandPrimitiveModel' import { XRHandMeshModel } from './XRHandMeshModel' export type XRHandModelHandedness = 'left' | 'right' export class XRHandModel extends Object3D { constructor() motionController: XRHandPrimitiveModel | XRHandMeshModel } export class XRHandModelFactory { constructor() path: string setPath(path: string): XRHandModelFactory createHandModel( controller: Group, profile?: 'spheres' | 'boxes' | 'oculus', options?: XRHandPrimitiveModelOptions, ): XRHandModel }