編輯

共用方式為


MathUtilities.QuaternionFromMatrix(Matrix4x4) Method

Definition

Creates a quaternion containing the rotation from the input matrix.

public:
 static UnityEngine::Quaternion QuaternionFromMatrix(UnityEngine::Matrix4x4 m);
public static UnityEngine.Quaternion QuaternionFromMatrix (UnityEngine.Matrix4x4 m);
static member QuaternionFromMatrix : UnityEngine.Matrix4x4 -> UnityEngine.Quaternion
Public Shared Function QuaternionFromMatrix (m As Matrix4x4) As Quaternion

Parameters

m
UnityEngine.Matrix4x4

Input matrix to convert to quaternion

Returns

UnityEngine.Quaternion

Applies to