UnityEngine.Matrix4x4.GetTRSProperties(out UnityEngine.Vector3, out UnityEngine.Quaternion, out UnityEngine.Vector3)

Here are the examples of the csharp api UnityEngine.Matrix4x4.GetTRSProperties(out UnityEngine.Vector3, out UnityEngine.Quaternion, out UnityEngine.Vector3) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

19 View Source File : SchemaExtensions.cs
License : MIT License
Project Creator : KhronosGroup

public static void GetUnityTRSProperties(this Node node, out Vector3 position, out Quaternion rotation,
			out Vector3 scale)
		{
			if (!node.UseTRS)
			{
				Matrix4x4 unityMat = node.Matrix.ToUnityMatrix4x4Convert();
				unityMat.GetTRSProperties(out position, out rotation, out scale);
			}
			else
			{
				position = node.Translation.ToUnityVector3Convert();
				rotation = node.Rotation.ToUnityQuaternionConvert();
				scale = node.Scale.ToUnityVector3Raw();
			}
		}

19 View Source File : SchemaExtensions.cs
License : MIT License
Project Creator : KhronosGroup

public static void GetTRSProperties(this GLTF.Math.Matrix4x4 gltfMat, out Vector3 position, out Quaternion rotation,
			out Vector3 scale)
		{
			gltfMat.ToUnityMatrix4x4Convert().GetTRSProperties(out position, out rotation, out scale);
		}