Esempio n. 1
0
 /// <summary>
 /// Makes a Quaternioin from the rotations in TransformData
 /// </summary>
 /// <param name="data">The Transform to get the rotations from</param>
 /// <returns>A Quaternion that has the same values as given in the data</returns>
 public static Quaternion GetRotation(TransformData data)
 {
     return(new Quaternion(data._rotX, data._rotY, data._rotZ, data._rotW));
 }
Esempio n. 2
0
 /// <summary>
 /// Makes a Vector3 from the position in TransformData
 /// </summary>
 /// <param name="data">The Transform to get the position from</param>
 /// <returns>A Vector3 that has the same values as given in the data</returns>
 public static Vector3 GetPosition(TransformData data)
 {
     return(new Vector3(data._posX, data._posY, data._posZ));
 }