summaryrefslogtreecommitdiffstats
path: root/Scripts/Fold/Editor/PlaneToTubeNode.cs
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2026-01-02 17:32:05 -0800
committeryum <yum.food.vr@gmail.com>2026-01-02 17:32:14 -0800
commit9b45bce6d4ca528cf5bbc78aeaa0b6b06e0f1a29 (patch)
tree6fa297bf6c768d3c4552762d572a55e23f2978e8 /Scripts/Fold/Editor/PlaneToTubeNode.cs
parentfcc76b257ef5cfb4514669df3b0144f8e8dd76ef (diff)
Fold: add more nodes
Diffstat (limited to 'Scripts/Fold/Editor/PlaneToTubeNode.cs')
-rw-r--r--Scripts/Fold/Editor/PlaneToTubeNode.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/Scripts/Fold/Editor/PlaneToTubeNode.cs b/Scripts/Fold/Editor/PlaneToTubeNode.cs
new file mode 100644
index 0000000..b9158bf
--- /dev/null
+++ b/Scripts/Fold/Editor/PlaneToTubeNode.cs
@@ -0,0 +1,26 @@
+using GraphProcessor;
+using UnityEngine;
+
+[System.Serializable, NodeMenuItem("Fold/PlaneToTube")]
+public class PlaneToTubeNode : BaseFoldNode
+{
+ [Input(name = "p"), SerializeField, Tooltip("Origin point.")]
+ public Vector4 p;
+
+ [Input(name = "r"), SerializeField, Tooltip("Radial axis. Points along this line are not moved at all.")]
+ public Vector4 r;
+
+ [Input(name = "s"), SerializeField, Tooltip("Tangent axis. This line determines the axis around which the tube is unwrapped.")]
+ public Vector4 s;
+
+ [Input(name = "t"), SerializeField, Tooltip("Effect strength.")]
+ public float t;
+
+ public override string name => "Plane to Tube";
+
+ public override FoldNodeSerialized Serialize()
+ {
+ return new FoldNodeSerialized { opcode = 2, float0 = t, vec0 = p, vec1 = r, vec2 = s };
+ }
+}
+