Quaternion.identity 同一性

static var identity : Quaternion

Description描述

The identity rotation (Read Only). This quaternion corresponds to "no rotation": the object

is perfectly aligned with the world or parent axes

同一性旋转(只读)。该四元数,相当于"无旋转":这个物体完全对齐于世界或父轴。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		transform.rotation = Quaternion.identity;
	}
}
transform.rotation = Quaternion.identity;
Page last updated: 2012-7-21