Browse Source

XRHandModelFactory: Added types for XRHandModel and its methods.

Cody Bennett 4 years ago
parent
commit
80e67d5722
1 changed files with 28 additions and 0 deletions
  1. 28 0
      examples/jsm/webxr/XRHandModelFactory.d.ts

+ 28 - 0
examples/jsm/webxr/XRHandModelFactory.d.ts

@@ -0,0 +1,28 @@
+import {
+	Group,
+	Object3D,
+} from '../../../src/Three';
+
+import { GLTFLoader } from '../loaders/GLTFLoader';
+
+export class XRHandModel extends Object3D {
+
+	constructor();
+
+	motionController: any;
+
+}
+
+export class XRControllerModelFactory {
+
+	constructor( gltfLoader?: GLTFLoader );
+	gltfLoader: GLTFLoader | null;
+	path: string;
+
+	createHandModel(
+    controller: Group,
+    profile?: 'spheres' | 'boxes' | 'oculus',
+    options?: { primitive: 'sphere' | 'box' }
+  ): XRHandModel;
+
+}