Hi,
This might help :)
var FirstPerson: GameObject;
var tempTransformroattion_y:float;
var jalousie : GameObject;
function Start ()
{
tempTransformroattion_y = FirstPerson.transform.rotation.y;
Debug.Log(tempTransformroattion_y + "and" + FirstPerson.transform.rotation.y);
// yield WaitForSeconds(1);
FirstPerson.transform.LookAt(jalousie.transform);
Debug.Log(tempTransformroattion_y + "and" + FirstPerson.transform.rotation.y);
}
↧