Browse Source

TS: Updated XRHandModelFactory constructor and added model option.

Cody Bennett 4 years ago
parent
commit
4542daa9db
1 changed files with 2 additions and 5 deletions
  1. 2 5
      examples/jsm/webxr/XRHandModelFactory.d.ts

+ 2 - 5
examples/jsm/webxr/XRHandModelFactory.d.ts

@@ -3,8 +3,6 @@ import {
 	Object3D,
 } from '../../../src/Three';
 
-import { GLTFLoader } from '../loaders/GLTFLoader';
-
 export class XRHandModel extends Object3D {
 
 	constructor();
@@ -15,14 +13,13 @@ export class XRHandModel extends Object3D {
 
 export class XRHandModelFactory {
 
-	constructor( gltfLoader?: GLTFLoader );
-	gltfLoader: GLTFLoader | null;
+	constructor();
 	path: string;
 
 	createHandModel(
 		controller: Group,
 		profile?: 'spheres' | 'boxes' | 'oculus',
-		options?: { primitive: 'sphere' | 'box' }
+		options?: { model?: 'lowpoly', primitive?: 'sphere' | 'box' }
 	): XRHandModel;
 
 }