From 0abec8156bd944aa883d544850ee1187219ba943 Mon Sep 17 00:00:00 2001 From: Lucas Fryzek Date: Tue, 17 Sep 2024 22:02:33 +0100 Subject: Initial commit --- scripts/spin_ground.gd | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 scripts/spin_ground.gd (limited to 'scripts/spin_ground.gd') 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 -- cgit