コード例 #1
0
 public Vector3 initialPosition(Vector3 current)
 {
     if (space == Space.Self)
     {
         return(offsetPosition.ReversePosition(transform.position, transform.rotation, Vector3.one * totalScale, current));
     }
     else
     {
         return(offsetPosition.ReversePosition(Vector3.zero, Quaternion.Euler(Vector3.zero), current));
     }
 }
コード例 #2
0
 public static Vector3 ReversePosition(this AxisOrder target, CustomPosition relative, float scale = 1f)
 {
     return(target.ReversePosition(relative, null, scale));
 }