I don’t understand why 3dtext has backwards orientation, but I need to use transform lookat with the text mesh. I don’t want to dump it in a another game object, I just need to look at the camera, without the letters being backwards! How do I reverse transform.LookAt?
Thanks alot!
That will do what you want. It rotates the transform “away” from the target.
var target : Transform;
function Update ()
{
transform.rotation = Quaternion.LookRotation(transform.position - target.position);
}
Found an answer after more browsing (sorry)
transform.LookAt(2 * transform.position - stareat.position);