Bug Fix
This commit is contained in:
37
Tests/TestScene.cs
Normal file
37
Tests/TestScene.cs
Normal 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)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user