Version: 2017.1
public static float Angle (Quaternion a, Quaternion b);

描述

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

using UnityEngine;
using System.Collections;

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