Now About Social Code
summaryrefslogtreecommitdiff
path: root/scripts/spin_ground.gd
diff options
context:
space:
mode:
authorLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2024-09-17 22:02:33 +0100
committerLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2024-09-17 22:02:33 +0100
commit0abec8156bd944aa883d544850ee1187219ba943 (patch)
tree55e222da361d176b0ba79611704b56e2d942a831 /scripts/spin_ground.gd
Initial commit
Diffstat (limited to 'scripts/spin_ground.gd')
-rw-r--r--scripts/spin_ground.gd15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/spin_ground.gd b/scripts/spin_ground.gd
new file mode 100644
index 0000000..078a757
--- /dev/null
+++ b/scripts/spin_ground.gd
@@ -0,0 +1,15 @@
+extends Node3D
+
+@export var rotation_dir: float = 1
+@export var rotation_axis: Vector3 = Vector3.BACK
+
+# Called when the node enters the scene tree for the first time.
+func _ready() -> void:
+ #rotate_z(deg_to_rad(180))
+ pass
+
+
+# Called every frame. 'delta' is the elapsed time since the previous frame.
+func _process(delta: float) -> void:
+ rotate(rotation_axis, rotation_dir * delta);
+ pass