Browse Source

Implemented Object3D.DefaultUp. See #4790.

Mr.doob 11 years ago
parent
commit
aece0c48c2
1 changed files with 2 additions and 1 deletions
  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 = {