MathUtilities.ToTranslationRotation(Matrix4x4, Vector3, Quaternion) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extract the translation and rotation components of a Unity matrix
public:
static void ToTranslationRotation(UnityEngine::Matrix4x4 unityMtx, [Runtime::InteropServices::Out] UnityEngine::Vector3 % translation, [Runtime::InteropServices::Out] UnityEngine::Quaternion % rotation);
public static void ToTranslationRotation (UnityEngine.Matrix4x4 unityMtx, out UnityEngine.Vector3 translation, out UnityEngine.Quaternion rotation);
static member ToTranslationRotation : UnityEngine.Matrix4x4 * Vector3 * Quaternion -> unit
Public Shared Sub ToTranslationRotation (unityMtx As Matrix4x4, ByRef translation As Vector3, ByRef rotation As Quaternion)
Parameters
- unityMtx
- UnityEngine.Matrix4x4
- translation
- UnityEngine.Vector3
- rotation
- UnityEngine.Quaternion