drehendes zahnrad

This commit is contained in:
PfandBoss
2022-12-11 10:57:57 +01:00
parent edb53171d0
commit e4b3835ec3
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
extends Node3D
var speed := 2.0
func _process(delta):
rotate(Vector3(0,1,0),delta * speed)
print(rotation.y)

9
turning_zahnrad.tscn Normal file
View File

@@ -0,0 +1,9 @@
[gd_scene load_steps=3 format=3 uid="uid://cvcfn3l2wj8gb"]
[ext_resource type="PackedScene" uid="uid://dsj0fslwga5xl" path="res://Assets/Model/MainMenuObjects/zahnrad_klein.glb" id="1_rs3ag"]
[ext_resource type="Script" path="res://Assets/Model/MainMenuObjects/zahnrad_klein.gd" id="2_ade0m"]
[node name="Node3D" type="Node3D"]
[node name="zahnrad_klein" parent="." instance=ExtResource("1_rs3ag")]
script = ExtResource("2_ade0m")