From 6e210c2a5fe4e9143c850f34a5e2a2d0a758d6d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20=C5=A0neider?= Date: Mon, 11 Mar 2024 16:12:35 +0100 Subject: [PATCH] add DirectionalLight and setup input methods --- project.godot | 35 +++++++++++++++++++++++++++++++++++ root.tscn | 4 ++++ 2 files changed, 39 insertions(+) diff --git a/project.godot b/project.godot index 3ddf1f6..62bd790 100644 --- a/project.godot +++ b/project.godot @@ -18,3 +18,38 @@ config/icon="res://icon.svg" [filesystem] import/fbx/enabled=false + +[input] + +Forward={ +"deadzone": 0.5, +"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":5,"axis_value":1.0,"script":null) +, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} +Backward={ +"deadzone": 0.5, +"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":4,"axis_value":1.0,"script":null) +, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":115,"echo":false,"script":null) +] +} +"Turn Left"={ +"deadzone": 0.5, +"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":-1.0,"script":null) +] +} +"Turn Right"={ +"deadzone": 0.5, +"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":1.0,"script":null) +] +} +"Move Left"={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":97,"echo":false,"script":null) +] +} +"Move Right"={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":100,"echo":false,"script":null) +] +} diff --git a/root.tscn b/root.tscn index 520e933..b9860f2 100644 --- a/root.tscn +++ b/root.tscn @@ -27,6 +27,7 @@ points = PackedVector3Array(-66.5774, -8.87646, 19.4626, -36.735, 0.304567, 7.99 script = ExtResource("1_lrw8a") [node name="MeshInstance3D" type="MeshInstance3D" parent="Plane"] +gi_mode = 2 mesh = ExtResource("1_s05fj") skeleton = NodePath("../..") @@ -50,3 +51,6 @@ shape = SubResource("ConvexPolygonShape3D_tmnsn") [node name="HUD" type="Camera3D" parent="Plane"] transform = Transform3D(1, -3.18388e-16, 3.4746e-16, 3.4746e-16, 0.996195, -0.0871557, -3.18388e-16, 0.0871557, 0.996195, 2.08165e-12, 50, 80) + +[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2814.34, 0, 0)