set battery on layer 2, changed layer name to "Interactions" and added input keys...
authorEduardo <[email protected]>
Sun, 11 Feb 2024 16:55:20 +0000 (17:55 +0100)
committerEduardo <[email protected]>
Sun, 11 Feb 2024 16:55:20 +0000 (17:55 +0100)
assets/bateria/bateria.tscn
project.godot

index 82310d09ad41b3618aa6941e12a58cfd9d6b1d7d..ccc3980cd7054549fcad5d29dd7c55c6e1e9487f 100644 (file)
@@ -130,6 +130,7 @@ shadow_mesh = SubResource("ArrayMesh_fa21w")
 
 [node name="bateria" type="StaticBody3D"]
 transform = Transform3D(0.07, 0, 0, 0, 0.07, 0, 0, 0, 0.07, 0, 0.106267, 0)
+collision_layer = 3
 
 [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00454712, 0.0455937, 0)
index a496a1e4f4a5dd8457ae135bebe620b137b5d981..c03e8e4d17f30e7a81d8b6249d6223e1822b66e0 100644 (file)
@@ -98,5 +98,15 @@ run={
 squat={
 "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":4194328,"key_label":0,"unicode":0,"echo":false,"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":4194326,"key_label":0,"unicode":0,"echo":false,"script":null)
 ]
 }
+action={
+"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":70,"key_label":0,"unicode":102,"echo":false,"script":null)
+]
+}
+
+[layer_names]
+
+3d_physics/layer_2="Interactions"