Pointing the down of a transform towards another.

Hi guys
I have been trying to point a transform towards another transform but instead of the fwd facing the object i want the down to face the object.

Actually i also wonder if you can actually change a transform’s forward by using transform.forward.

I think you would have to correct for it after the call to look at:
function update(){
transform.LookAt(target);
transform.rotate(90,0,0);
}

That’s from reading the reference. I haven’t actually tried it or anything as far as rotation but I would think you would rotate it 90 on the x axis.

You might also be able to reorient it in the editor somehow, so front is bottom, or in a modeler before it was imported if it’s always the bottom that you want to point at something.

I was hoping there would be a more elegant solution but regardless it doesnt work. I should have stated that it was a skeleton and i was trying to make the parent joint look at the child joints.position. This is a Velert ragdoll as seen in hitman 2.

yes, you can change the trasnform forward by using trasform.forward.
for example:

transform.forward = Vector3(0,1,0)

in your case, you can try:

transform.up = transform.position - target.position