Explorar o código

Fix MMDPhysics: replace Vector3 with Euler for currentRotation

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

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

@@ -59,7 +59,7 @@ THREE.MMDPhysics.prototype = {
 
 		var helper = this.helper;
 		var currentPosition = helper.allocThreeVector3();
-		var currentRotation = helper.allocThreeVector3();
+		var currentRotation = helper.allocThreeEuler();
 		var currentScale = helper.allocThreeVector3();
 
 		currentPosition.copy( mesh.position );
@@ -91,7 +91,7 @@ THREE.MMDPhysics.prototype = {
 		this.reset();
 
 		helper.freeThreeVector3( currentPosition );
-		helper.freeThreeVector3( currentRotation );
+		helper.freeThreeEuler( currentRotation );
 		helper.freeThreeVector3( currentScale );
 
 	},