diff --git a/godot/Assets/Models/movement_marker.glb b/godot/Assets/Models/movement_marker.glb new file mode 100644 index 0000000..e0e9cf1 --- /dev/null +++ b/godot/Assets/Models/movement_marker.glb @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a2dbee63dadf12a24654d0ee1f3f379811dca9354242071b5ebe98c8cc984ffb +size 3340 diff --git a/godot/Assets/Models/movement_marker.glb.import b/godot/Assets/Models/movement_marker.glb.import new file mode 100644 index 0000000..39c2f35 --- /dev/null +++ b/godot/Assets/Models/movement_marker.glb.import @@ -0,0 +1,43 @@ +[remap] + +importer="scene" +importer_version=1 +type="PackedScene" +uid="uid://d6kgu1fpgkqi" +path="res://.godot/imported/movement_marker.glb-d7785fd93fafcd10d5d4cbcede910854.scn" + +[deps] + +source_file="res://Assets/Models/movement_marker.glb" +dest_files=["res://.godot/imported/movement_marker.glb-d7785fd93fafcd10d5d4cbcede910854.scn"] + +[params] + +nodes/root_type="" +nodes/root_name="" +nodes/apply_root_scale=true +nodes/root_scale=1.0 +nodes/import_as_skeleton_bones=false +meshes/ensure_tangents=true +meshes/generate_lods=true +meshes/create_shadow_meshes=true +meshes/light_baking=1 +meshes/lightmap_texel_size=0.2 +meshes/force_disable_compression=false +skins/use_named_skins=true +animation/import=true +animation/fps=30 +animation/trimming=false +animation/remove_immutable_tracks=true +animation/import_rest_as_RESET=false +import_script/path="" +_subresources={ +"materials": { +"Material": { +"use_external/enabled": true, +"use_external/path": "res://Assets/Models/movement_marker.tres" +} +} +} +gltf/naming_version=1 +gltf/embedded_image_handling=1 diff --git a/godot/Assets/Models/movement_marker.tres b/godot/Assets/Models/movement_marker.tres new file mode 100644 index 0000000..6fb5dfc --- /dev/null +++ b/godot/Assets/Models/movement_marker.tres @@ -0,0 +1,6 @@ +[gd_resource type="StandardMaterial3D" format=3 uid="uid://dluo26ixa4p8o"] + +[resource] +transparency = 1 +shading_mode = 0 +albedo_color = Color(0.337255, 1, 0.615686, 0.533333) diff --git a/godot/GameObjects/ground_goal_marker.tscn b/godot/GameObjects/ground_goal_marker.tscn index 02c0b71..7faf411 100644 --- a/godot/GameObjects/ground_goal_marker.tscn +++ b/godot/GameObjects/ground_goal_marker.tscn @@ -1,24 +1,87 @@ -[gd_scene load_steps=4 format=3 uid="uid://btnlq0xajbfit"] +[gd_scene load_steps=9 format=3 uid="uid://btnlq0xajbfit"] + +[ext_resource type="PackedScene" uid="uid://d6kgu1fpgkqi" path="res://Assets/Models/movement_marker.glb" id="1_vqtx7"] [sub_resource type="Goal" id="Goal_nmxy4"] desired_state_dict = { "is_at_target": true } -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_t1mgt"] -albedo_color = Color(0.596078, 0.745098, 0.635294, 1) +[sub_resource type="Gradient" id="Gradient_62bs3"] +offsets = PackedFloat32Array(0.996466, 1) +colors = PackedColorArray(0, 1, 0.36277, 1, 1, 1, 1, 0) -[sub_resource type="CylinderMesh" id="CylinderMesh_4i5c2"] -material = SubResource("StandardMaterial3D_t1mgt") -height = 0.1 +[sub_resource type="GradientTexture2D" id="GradientTexture2D_cichh"] +gradient = SubResource("Gradient_62bs3") +width = 128 +height = 128 +fill = 1 +fill_from = Vector2(0.504274, 0.491453) +fill_to = Vector2(0.82906, 0.145299) + +[sub_resource type="Animation" id="Animation_d4ff1"] +resource_name = "animate" +length = 3.0 +loop_mode = 1 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("movement_marker:position") +tracks/0/interp = 2 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 1, 3), +"transitions": PackedFloat32Array(1, 1, 1), +"update": 0, +"values": [Vector3(0, 0.228122, 0), Vector3(0, 0.431749, 0), Vector3(0, 0.228122, 0)] +} + +[sub_resource type="Animation" id="Animation_sfcxq"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("movement_marker:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Vector3(0, 0.228122, 0)] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_t7gud"] +_data = { +"RESET": SubResource("Animation_sfcxq"), +"animate": SubResource("Animation_d4ff1") +} + +[sub_resource type="GDScript" id="GDScript_mvlku"] +script/source = "extends AnimationPlayer + +func _enter_tree(): + self.play(\"animate\") +" [node name="GroundGoalMarker" type="GoalMarker"] goal = SubResource("Goal_nmxy4") -transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -2.38494, 0, -2.58246) disable_mode = 1 collision_layer = 0 collision_mask = 0 input_ray_pickable = false -[node name="MeshInstance3D" type="MeshInstance3D" parent="."] -mesh = SubResource("CylinderMesh_4i5c2") +[node name="movement_marker" parent="." instance=ExtResource("1_vqtx7")] +transform = Transform3D(0.705747, 0, 0, 0, 0.705747, 0, 0, 0, 0.705747, 0, 0.261271, 0) + +[node name="Decal" type="Decal" parent="."] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.232787, 0) +size = Vector3(1.5, 1.948, 1.5) +texture_albedo = SubResource("GradientTexture2D_cichh") + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +reset_on_save = false +libraries = { +"": SubResource("AnimationLibrary_t7gud") +} +script = SubResource("GDScript_mvlku") diff --git a/godot/GameObjects/nav_marker.tscn b/godot/GameObjects/nav_marker.tscn index 725248e..ee63a96 100644 --- a/godot/GameObjects/nav_marker.tscn +++ b/godot/GameObjects/nav_marker.tscn @@ -1,5 +1,4 @@ [gd_scene format=3 uid="uid://c82s8vpaethtv"] [node name="NavMarker" type="NavMarker"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.68886, 0.383154, -2.15328) gizmo_extents = 1.0