Why do you call lookAt() in 2 different methods in the same update loop?
i turned off lookat in followpath when i was testing lookat in smoothLookat
either way lookat works only in followpath
Where is the tween?
if you mean tween.js then it is in my script folder in project
You realise you are calling smoothLookAt() every frame?
Please read the manual.
Calling a smooth rotation tween every frame is not what you want. You should call the tween once when the event happens
You are right ^^
Something is happening now, but it is not really what i want
it is behaving really awful
To be honest, I never managed to get smooth rotation with tweening. I therefore use a different method.
Might be a slightly different use-case but this works butter smooth for my camera rotation:
var exitDurationSeconds = 7.0;
this.tweenRotation = this.mainCamera.tween(this.originEntity.getLocalEulerAngles()).rotate(this.targetEntity.getLocalEulerAngles(), exitDurationSeconds, pc.Linear);
this.tweenRotation.start();
I think its not time for me to use tween library yet
Reffering to other topic: Smooth lookAt function
this one can be locked