Explorar o código

Update MMDLoader example

Takahiro %!s(int64=7) %!d(string=hai) anos
pai
achega
0e50b65369
Modificáronse 1 ficheiros con 2 adicións e 5 borrados
  1. 2 5
      examples/webgl_loader_mmd.html

+ 2 - 5
examples/webgl_loader_mmd.html

@@ -138,14 +138,11 @@
 						physics: true
 					} );
 
-					/*
-					 * Note: create CCDIKHelper and MMDPhysicsHelper after calling helper.add( mesh )
-					 */
-					ikHelper = new THREE.CCDIKHelper( mesh );
+					ikHelper = helper.objects.get( mesh ).ikSolver.createHelper();
 					ikHelper.visible = false;
 					scene.add( ikHelper );
 
-					physicsHelper = new THREE.MMDPhysicsHelper( mesh, helper.objects.get( mesh ).physics );
+					physicsHelper = helper.objects.get( mesh ).physics.createHelper();
 					physicsHelper.visible = false;
 					scene.add( physicsHelper );