Adding turn speed to LookAt disrupts the camera angle
Posted: Mon May 29, 2023 8:06 am
I am trying to make an NPC turn to the player when is entering a dialogue. The code below works fine when I dont add speed to LookAt. However, once I add movement speed to LookAt, the camera moves to front of the NPC while the NPC turns around to the player.
My guess is that Camera changes the angle BEFORE the NPC turns so it doesn't know that its direction changed. Is there a quick way to fix this? Thank you
Adding this to Sequencer in Conversation
My guess is that Camera changes the angle BEFORE the NPC turns so it doesn't know that its direction changed. Is there a quick way to fix this? Thank you
Adding this to Sequencer in Conversation
Code: Select all
Camera(Medium, speaker, 1);
LookAt(listener,,0.5);