Beispiel #1
0
 static public void LookAt(Transform item, Vector3 target_pos)
 {
     item.localEulerAngles = new Vector3(
         item.localEulerAngles.x,
         item.localEulerAngles.y,
         Math3d.AngleFromUp(target_pos - item.position)
         );
 }