Explorar o código

Fixed params.gravity

Pan Xinmiao %!s(int64=6) %!d(string=hai) anos
pai
achega
b55bae1ba9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/js/animation/MMDPhysics.js

+ 1 - 1
examples/js/animation/MMDPhysics.js

@@ -47,7 +47,7 @@ THREE.MMDPhysics = ( function () {
 		this.maxStepNum = ( params.maxStepNum !== undefined ) ? params.maxStepNum : 3;
 		this.gravity = new THREE.Vector3( 0, - 9.8 * 10, 0 );
 
-		if ( params.gravity !== undefined ) this.gravity.copy( gravity );
+		if ( params.gravity !== undefined ) this.gravity.copy( params.gravity );
 
 		this.world = params.world !== undefined ? params.world : null; // experimental