Skip to content

Commit

Permalink
Merge pull request #21109 from CodyJasonBennett/xr-hand-types
Browse files Browse the repository at this point in the history
XRHandModelFactory: Added types for XRHandModel and its methods.
  • Loading branch information
mrdoob authored Jan 19, 2021
2 parents 169655b + 4542daa commit 7d57c7c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions examples/jsm/webxr/XRHandModelFactory.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import {
Group,
Object3D,
} from '../../../src/Three';

export class XRHandModel extends Object3D {

constructor();

motionController: any;

}

export class XRHandModelFactory {

constructor();
path: string;

createHandModel(
controller: Group,
profile?: 'spheres' | 'boxes' | 'oculus',
options?: { model?: 'lowpoly', primitive?: 'sphere' | 'box' }
): XRHandModel;

}

0 comments on commit 7d57c7c

Please sign in to comment.