src/renderable/renderable.js
function (target) {
            var position;

            if (target instanceof me.Renderable) {
                position = target.pos;
            } else {
                position = target;
            }

            var angle = this.angleTo(position);

            this.rotate(angle);

            return this;
        }
function (target) {
            var position;

            if (target instanceof me.Renderable) {
                position = target.pos;
            } else {
                position = target;
            }

            var angle = this.angleTo(position);

            this.rotate(angle);

            return this;
        }
function ( target ) { var position ; if ( target instanceof me . Renderable ) { position = target . pos ; } else { position = target ; } var angle = this . angleTo ( position ) ; this . rotate ( angle ) ; return this ; }
Rotate this renderable towards the given target.
@name lookAt
@memberOf me.Renderable.prototype
@function
@param {me.Renderable|me.Vector2d|me.Vector3d} target the renderable or position to look at
@return {me.Renderable} Reference to this object for method chaining
Rotate this renderable towards the given target .