コード例 #1
0
 /// <summary>
 /// Returns a new copy of the given Transformdata, with the position passed in.
 /// </summary>
 /// <param name="transformData"></param>
 /// <param name="position"></param>
 /// <returns></returns>
 public static TransformData Copy(TransformData transformData, Vector3 position)
 {
     return(new TransformData(position, transformData.rotation, transformData.scale));
 }
コード例 #2
0
 /// <summary>
 /// Returns a new copy of the given TransformData, with the rotation passed in
 /// </summary>
 /// <param name="transformData"></param>
 /// <param name="rotation"></param>
 /// <returns></returns>
 public static TransformData Copy(TransformData transformData, Quaternion rotation)
 {
     return(new TransformData(transformData.position, rotation, transformData.scale));
 }
コード例 #3
0
 public TransformData(TransformData other)
 {
     position = other.position;
     rotation = other.rotation;
     scale    = other.scale;
 }