Browse Source

Fixed params.gravity

Pan Xinmiao 6 years ago
parent
commit
b55bae1ba9
1 changed files with 1 additions and 1 deletions
  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