C# 클래스 RootMotion.QuaTools

Helper methods for dealing with Quaternions.
파일 보기 프로젝트 열기: Alx666/ProjectPhoenix

공개 메소드들

메소드 설명
FromToAroundAxis ( Vector3 fromDirection, Vector3 toDirection, Vector3 axis ) : Quaternion

Froms to around axis creates a FromToRotation, but makes sure it's axis remains fixed near to the Quaternion singularity point.

FromToRotation ( Quaternion from, Quaternion to ) : Quaternion

Gets the Quaternion from rotation "from" to rotation "to".

GetAxis ( Vector3 v ) : Vector3

Gets the closest direction axis to a vector. Input vector must be normalized!

RotationToLocalSpace ( Quaternion space, Quaternion rotation ) : Quaternion

Gets the rotation that can be used to convert a rotation from one axis space to another.

메소드 상세

FromToAroundAxis() 공개 정적인 메소드

Froms to around axis creates a FromToRotation, but makes sure it's axis remains fixed near to the Quaternion singularity point.
public static FromToAroundAxis ( Vector3 fromDirection, Vector3 toDirection, Vector3 axis ) : Quaternion
fromDirection UnityEngine.Vector3 /// From direction. ///
toDirection UnityEngine.Vector3 /// To direction. ///
axis UnityEngine.Vector3 /// Axis. Should be normalized before passing into this method. ///
리턴 UnityEngine.Quaternion

FromToRotation() 공개 정적인 메소드

Gets the Quaternion from rotation "from" to rotation "to".
public static FromToRotation ( Quaternion from, Quaternion to ) : Quaternion
from UnityEngine.Quaternion
to UnityEngine.Quaternion
리턴 UnityEngine.Quaternion

GetAxis() 공개 정적인 메소드

Gets the closest direction axis to a vector. Input vector must be normalized!
public static GetAxis ( Vector3 v ) : Vector3
v UnityEngine.Vector3
리턴 UnityEngine.Vector3

RotationToLocalSpace() 공개 정적인 메소드

Gets the rotation that can be used to convert a rotation from one axis space to another.
public static RotationToLocalSpace ( Quaternion space, Quaternion rotation ) : Quaternion
space UnityEngine.Quaternion
rotation UnityEngine.Quaternion
리턴 UnityEngine.Quaternion