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

描述

ab 之间以球形方式插入 t。参数 t 被限制在 [0, 1] 范围内。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public Transform from; public Transform to; public float speed = 0.1F; void Update() { transform.rotation = Quaternion.Slerp(from.rotation, to.rotation, Time.time * speed); } }

另请参阅:LerpSlerpUnclamped