言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

Quaternion.Inverse

public static function Inverse(rotation: Quaternion): Quaternion;

Description

Returns the Inverse of rotation.

	// Sets this transform to have the opposite rotation of the target

	var target : Transform;
	function Update () {
		transform.rotation = Quaternion.Inverse(target.rotation);
	}