Versions with this page:
Versions without this page:
返回两个旋转 a 和 b 之间的角度(以度为单位)。
a
b
using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { public Transform target; void Update() { float angle = Quaternion.Angle(transform.rotation, target.rotation); } }