aboutsummaryrefslogtreecommitdiffstats
path: root/godot/scenes/Rotator.gd
diff options
context:
space:
mode:
authorLibravatar IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com>2022-07-17 06:33:18 +0200
committerLibravatar IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com>2022-07-17 06:33:18 +0200
commit6cdf5b1fc587bfa7f3ed8b3388c232269946a5da (patch)
tree24a3c1b8215f0a8ab03afaac7ea0deecc8040882 /godot/scenes/Rotator.gd
parent2463d0532a63ae4d7f67dbd56d9d886b214b2ac5 (diff)
download2022-6cdf5b1fc587bfa7f3ed8b3388c232269946a5da.tar.gz
2022-6cdf5b1fc587bfa7f3ed8b3388c232269946a5da.tar.bz2
2022-6cdf5b1fc587bfa7f3ed8b3388c232269946a5da.zip
small UI changes
Diffstat (limited to 'godot/scenes/Rotator.gd')
-rw-r--r--godot/scenes/Rotator.gd12
1 files changed, 12 insertions, 0 deletions
diff --git a/godot/scenes/Rotator.gd b/godot/scenes/Rotator.gd
new file mode 100644
index 0000000..5593d98
--- /dev/null
+++ b/godot/scenes/Rotator.gd
@@ -0,0 +1,12 @@
+extends Spatial
+
+var sum_delta = 0
+
+# Called when the node enters the scene tree for the first time.
+func _ready():
+ pass # Replace with function body.
+
+func _process(delta):
+ sum_delta += delta
+ global_rotate(Vector3.UP, delta)
+ global_rotate(Vector3.FORWARD, -delta)