So I'm basically writing an application that requires a capsule to point towards the bottom of another object. My problem is that if I use "LookAt" then the capsule points 90 degrees away from it because the capsule isn't pointing in the correct direction initially. Is there any way to change this?
My code is the following:
var Target1: Transform;
var Self1: Transform;
function Update () {
var targPosition: Vector3 = new Vector3(Target1.position.x, Target1.position.y - 1, Target1.position.z);
Self1.LookAt(targPosition);
}
Thanks in advance