79481134

Date: 2025-03-03 13:58:42
Score: 1.5
Natty:
Report link

Change "transform.LookAt(PlayerController.instance.transform.position, -Vector3.right);" to "transform.LookAt(PlayerController.instance.viewCam.transform.position, -Vector3.right);" so that the object looks at the camera instead of the player. Also, you should use LateUpdate for the billboard code, not Update, since if you use Update it will be consistently one frame behind. Also make sure you remember to drag and drop the billboard script onto the gameobject that you want to billboard the player before you enter playmode.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: misInformationSpreader