// update code called every frame
ShowPanel.prototype.update = function(dt) {
var cameraPosition = this.cameraEntity.getPosition();
this.lookEntity.lookAt(cameraPosition);
var position = this.entity.getPosition();
position.lerp(position, this.lookEntity.getPosition(), this.speed * dt);
this.entity.setPosition(position);
var Rotation = this.entity.getRotation();
//console.log(rot);
Rotation.lerp(Rotation, this.lookEntity.getRotation(), this.speed * dt);
this.entity.setRotation(Rotation);
};
Why did it go wrong?