2
0
Эх сурвалжийг харах

Fix MMDPhysics: replace Vector3 with Euler for currentRotation

Takahiro 7 жил өмнө
parent
commit
6e0caa590b

+ 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 );
 
 	},