소스 검색

Implemented Object3D.DefaultUp. See #4790.

Mr.doob 11 년 전
부모
커밋
aece0c48c2
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/core/Object3D.js

+ 2 - 1
src/core/Object3D.js

@@ -15,7 +15,7 @@ THREE.Object3D = function () {
 	this.parent = undefined;
 	this.children = [];
 
-	this.up = new THREE.Vector3( 0, 1, 0 );
+	this.up = THREE.Object3D.DefaultUp.clone();
 
 	this.position = new THREE.Vector3();
 
@@ -61,6 +61,7 @@ THREE.Object3D = function () {
 
 };
 
+THREE.Object3D.DefaultUp = new THREE.Vector3( 0, 1, 0 );
 
 THREE.Object3D.prototype = {