コード例 #1
0
ファイル: IOHandler.cs プロジェクト: Hengle/LargeCrowdProject
 /// <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));
 }
コード例 #2
0
ファイル: IOHandler.cs プロジェクト: Hengle/LargeCrowdProject
 /// <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));
 }