diff options
Diffstat (limited to 'godot/scenes/Rotator.gd')
-rw-r--r-- | godot/scenes/Rotator.gd | 12 |
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) |