- Home /
How to make NPC head face PC?
NPC standing in one place playing idle animation. PC walks up to the NPC from some direction. How do you make the NPC head turn and face the PC? Is there a way to override the rig for a specific bone to do this dynamically?
This is in 3D context if it makes any difference.
Answer by akihikosama · Feb 09, 2021 at 02:44 AM
I ended up manually pointing the head bone transform rotation towards the PC direction in LateUpdate(), overriding the animator idle rotation. Seems to work fine, not sure if there is a better solution.
Your answer
Follow this Question
Related Questions
Animation is not previewing in Humanoid rig mode, and only previews correctly in Generic or Legacy? 0 Answers
Charecter Model falls halfway through ground when using rig 0 Answers
Modify animation performed by a character rigged in mixamo 0 Answers
Can I make animations snap to a frame? 1 Answer
Mecanim MatchTarget & Generic Rig 1 Answer