summaryrefslogtreecommitdiffstats
path: root/Scripts/Fold/Editor/PointAlignNode.cs
blob: c113928a79fcf318202a7124688dc3ab3b879ed5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using GraphProcessor;
using UnityEngine;

[System.Serializable, NodeMenuItem("Fold/PointAlign")]
public class PointAlignNode : BaseFoldNode
{
  // Origin point.
  [Input(name = "po")]
  public Vector4 po;

  [Output(name = "Out")]
  public PointAlignNode output;

  public override string name => "Point Align";

  public override FoldNodeSerialized Serialize()
  {
      return new FoldNodeSerialized { opcode = 0, vec0 = po };
  }
}