Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Quaternion.Inverse

Switch to Manual
public static function Inverse(rotation: Quaternion): Quaternion;

Parameters

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); }