LookAt facing Upwards

var target : GameObject;
var damping = 6.0;
var smooth = true;

function LateUpdate () {
    target = GameObject.FindWithTag("LookAtMe");    

function LookAtBackwards(targetPos: Vector3) {
    var offset: Vector3 = transform.position - Vector3.up;
    transform.LookAt(transform.position - offset);

So far I'm able to reverse the forward of my object, but I want the bottom of the objects transform to face the LookAt target instead.

Any ideas, Thanks - C

Simple solution, define a new pivot:

1.Create an empty gameobject.

2.Make this empty the parent of your main object.

you need to change the rotation of the main gameobject to check whether it gives you what you want after making it a child of that empty go.

Now you can simply attach your script to the parent.

Hope it helps.

Not elegant enough, I mean… it requires adding parent to each object that uses LookAt function to fix the angle, is there any way else or LookAt just can’t make it?