diff --git a/examples/misc_lookAt.html b/examples/misc_lookAt.html new file mode 100644 index 00000000..5dde8357 --- /dev/null +++ b/examples/misc_lookAt.html @@ -0,0 +1,143 @@ + + + + three.js misc - lookAt + + + + +
three.js - Object3D::lookAt() demo
+ + + + + + + + + + + diff --git a/examples/webgl_materials_texture_filters.html b/examples/webgl_materials_texture_filters.html index db84d8f7..de0c79b5 100644 --- a/examples/webgl_materials_texture_filters.html +++ b/examples/webgl_materials_texture_filters.html @@ -60,7 +60,7 @@ min: Nearest - + diff --git a/src/core/Object3D.js b/src/core/Object3D.js index bebe961c..e40a0209 100644 --- a/src/core/Object3D.js +++ b/src/core/Object3D.js @@ -57,11 +57,11 @@ THREE.Object3D.prototype = { }, */ - lookAt : function ( target ) { + lookAt : function ( vector ) { // TODO: Add hierarchy support. - this.matrix.lookAt( this.position, target, this.up ); + this.matrix.lookAt( this.position, vector, this.up ); if ( this.rotationAutoUpdate ) {