Returns the Inverse of rotation.
// Sets this transform to have the opposite rotation of the targetvar target : Transform;function Update () { transform.rotation = Quaternion.Inverse(target.rotation);}
using UnityEngine;using System.Collections;public class example : MonoBehaviour { public Transform target; void Update() { transform.rotation = Quaternion.Inverse(target.rotation); }}
import UnityEngineimport System.Collectionsclass example(MonoBehaviour): public target as Transform def Update(): transform.rotation = Quaternion.Inverse(target.rotation)