Quaternion
.Inverse
Manual
Reference
Scripting
Scripting
>
Runtime Classes
>
Quaternion
Quaternion
.Inverse
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
Quaternion
All Members
Variables
eulerAngles
this [int index]
w
x
y
z
Constructors
Quaternion
Functions
SetFromToRotation
SetLookRotation
ToAngleAxis
ToString
Class Variables
identity
Class Functions
Angle
AngleAxis
Dot
Euler
FromToRotation
Inverse
Lerp
LookRotation
operator !=
operator *
operator ==
RotateTowards
Slerp
static
function
Inverse (rotation : Quaternion) : Quaternion
Description
Returns the Inverse of
rotation
.
JavaScripts
JavaScript
C#
Boo
// Sets this transform to have the opposite rotation of the target
var
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
UnityEngine
import
System.Collections
class
example(
MonoBehaviour
):
public
target as
Transform
def
Update
():
transform.rotation =
Quaternion.Inverse
(target.rotation)