Quaternion.Dot 点乘

static function Dot (a : Quaternion, b : Quaternion) : float

Description描述

The dot product between two rotations.

两个旋转之间的点乘。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		print(Quaternion.Dot(transform.rotation, Quaternion.identity));
	}
}
print(Quaternion.Dot (transform.rotation, Quaternion.identity));
Page last updated: 2011-1-16