From 99ee0a8cde202571248f4586e0512b674536c702 Mon Sep 17 00:00:00 2001 From: Cat Flynn Date: Mon, 5 Sep 2022 20:13:03 +0100 Subject: [PATCH] adjust orbit speed --- scenes/Main.tscn | 1 + scripts/orbits/OrbitSystem.cs | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scenes/Main.tscn b/scenes/Main.tscn index fa3a7eb..c0c8a4f 100644 --- a/scenes/Main.tscn +++ b/scenes/Main.tscn @@ -14,3 +14,4 @@ transform = Transform( 0.515898, 0.606099, -0.605386, -0.393123, 0.795389, 0.461 transform = Transform( 0.856869, 0.3292, -0.396741, 0.0949996, 0.655565, 0.749139, 0.506706, -0.679604, 0.53046, -0.599122, 0, 0 ) SemiMajorAxis = 6.166 Eccentricity = 0.239 +_speed = 0.877 diff --git a/scripts/orbits/OrbitSystem.cs b/scripts/orbits/OrbitSystem.cs index aee2ac4..e60b2db 100644 --- a/scripts/orbits/OrbitSystem.cs +++ b/scripts/orbits/OrbitSystem.cs @@ -134,9 +134,12 @@ public class OrbitSystem : Node, IMassive, ILocation private float _time = 0; + [Export] + private float _speed = 3f; + public override void _Process(float delta) { - _time += delta * 3f; + _time += delta * _speed; InvalidateGeometry(); }