public static MotionItem CreateDefault(MotionFile ownerFile) { MotionItem item = new MotionItem(ownerFile); item.AddPoint(new MotionPoint(new PVector2(0f, 0f))); item.AddPoint(new MotionPoint(new PVector2(1f, 1f))); return(item); }
public static void CreateDefault(MotionItem motionItem) { motionItem.AddPoint(new MotionPoint(new PVector2(0f, 0f))); motionItem.AddPoint(new MotionPoint(new PVector2(1f, 1f))); }