public static float Angle (Quaternion a, Quaternion b);

Description

返回两个旋转 ab 之间的角度(以度为单位)。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public Transform target; void Update() { float angle = Quaternion.Angle(transform.rotation, target.rotation); } }