hi guys:
is there a tutorial explain all the necessary maths for unity?
i searched around and find a good one explaining the below:
Vector3 dirToCamera = (mainCamera.position - transform.position).normalized;
which is direction = destination - source and why it need to be normailized.
but nothing on why below?
transform.LookAt(transform.position + dirToCamera * -1);
as oppose to just:
transform.LookAt(dirToCamera);
and what this pointing at ? i tried to run the 2nd one seems like the text is pointing at the camera with y axis. instead of z axis.