This commit is contained in:
h z
2024-06-26 14:23:02 +08:00
parent cbe5887f5f
commit b8af5f3ccd
22 changed files with 467 additions and 174 deletions

37
Tests/TestScene.cs Normal file
View File

@@ -0,0 +1,37 @@
using Godot;
using System;
public partial class TestScene : Node2D
{
public Marker2D A { get; set; }
public Marker2D B { get; set; }
public Line2d L1 { get; set; }
public Line2d L2 { get; set; }
public Line2d L3 { get; set; }
public Line2d L4 { get; set; }
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
A = GetNode<Marker2D>("A");
B = GetNode<Marker2D>("B");
L1 = GetNode<Line2d>("L1");
L2 = GetNode<Line2d>("L2");
L3 = GetNode<Line2d>("L3");
L4 = GetNode<Line2d>("L4");
L1.CurveRate = 20;
L1.CDir = 1;
L2.CurveRate = 10;
L1.CDir = 1;
L3.CurveRate = 10;
L3.CDir = -1;
L4.CurveRate = 20;
L4.CDir = -1;
}
// Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(double delta)
{
}
}