Added rotation to the Rotor level's crank shaft.

remotes/1705382094874458415/tmp_refs/heads/godot4-port
unfa 2020-10-17 14:42:32 +02:00
parent aaa7c0afa9
commit e415e6643b
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,16 @@
extends MeshInstance
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
rotate_y(5 * delta)

View File

@ -1,9 +1,10 @@
[gd_scene load_steps=13 format=2]
[gd_scene load_steps=14 format=2]
[ext_resource path="res://LevelComponents/Killfloor.tscn" type="PackedScene" id=1]
[ext_resource path="res://LevelComponents/SpawnPoint.tscn" type="PackedScene" id=2]
[ext_resource path="res://LevelComponents/LevelGeometry.gd" type="Script" id=3]
[ext_resource path="res://Assets/Maps/Rotor/Rotor.gltf" type="PackedScene" id=4]
[ext_resource path="res://Assets/Maps/Rotor/Crank.gd" type="Script" id=5]
[sub_resource type="VisualShaderNodeTextureUniformTriplanar" id=1]
output_port_for_preview = 0
@ -128,6 +129,10 @@ shader_param/BaseTextureNormal = SubResource( 7 )
[node name="Rotor" parent="." instance=ExtResource( 4 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -73.5341, -105.864, 0 )
[node name="Crank " parent="Rotor" index="2"]
transform = Transform( 0.993238, 0, -0.116093, 0, 1, 0, 0.116093, 0, 0.993238, 0, -3.13982, 0 )
script = ExtResource( 5 )
[node name="Node" type="Node" parent="."]
[node name="DirectionalLight" type="DirectionalLight" parent="Node"]