Browse Source

set quaternion, not rotation (#25112)

Diarmid Mackenzie 2 years ago
parent
commit
d93d110658
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/benchmark/core/UpdateMatrixWorld.js

+ 1 - 1
test/benchmark/core/UpdateMatrixWorld.js

@@ -11,7 +11,7 @@
 		var child = new THREE.Object3D();
 		child.position.copy( position );
 		child.scale.copy( scale );
-		child.rotation.copy( rotation );
+		child.quaternion.copy( rotation );
 		return child;
 
 	};