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)); } }
public static Vector3 ReversePosition(this AxisOrder target, CustomPosition relative, float scale = 1f) { return(target.ReversePosition(relative, null, scale)); }