prototype

This commit is contained in:
Michael Campbell 2026-01-29 14:23:33 -05:00
commit 5bac9ddd2a
33 changed files with 956 additions and 0 deletions

77
police_car.tscn Normal file
View file

@ -0,0 +1,77 @@
[gd_scene format=3 uid="uid://dusfu1hidkmsk"]
[ext_resource type="Script" uid="uid://c6xr2j0g1ep7j" path="res://police_car.gd" id="1_spw8y"]
[sub_resource type="Curve" id="Curve_spw8y"]
_limits = [1.0, 20.0, -1.0, 1.0]
_data = [Vector2(-1, 20), 0.0, 0.0, 0, 0, Vector2(0.20895529, 4.7216473), -18.980904, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
point_count = 3
[sub_resource type="BoxMesh" id="BoxMesh_2kvnc"]
size = Vector3(1, 0.25, 0.5)
[sub_resource type="BoxShape3D" id="BoxShape3D_spw8y"]
size = Vector3(1, 0.25, 0.5)
[sub_resource type="BoxMesh" id="BoxMesh_spw8y"]
size = Vector3(0.1, 0.05, 0.2)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_8364l"]
albedo_color = Color(1, 0.32, 0.32, 1)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6u34r"]
albedo_color = Color(0.26, 0.45733315, 1, 1)
[sub_resource type="CylinderMesh" id="CylinderMesh_e8ulu"]
top_radius = 0.1
bottom_radius = 0.1
height = 0.5
[sub_resource type="BoxShape3D" id="BoxShape3D_8364l"]
size = Vector3(1.7734375, 0.5839844, 1.1367188)
[node name="PoliceCar" type="CharacterBody3D" unique_id=206023291]
collision_layer = 8
collision_mask = 15
script = ExtResource("1_spw8y")
dot_curve = SubResource("Curve_spw8y")
[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=423323850]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -0.122092836, 0.34972915, -0.0012522953)
mesh = SubResource("BoxMesh_2kvnc")
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=637101729]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -0.122092836, 0.34972915, -0.0012522953)
shape = SubResource("BoxShape3D_spw8y")
[node name="MeshInstance3D4" type="MeshInstance3D" parent="." unique_id=1230197866]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0.59585166, 0.65602696, 0.24429089)
mesh = SubResource("BoxMesh_spw8y")
surface_material_override/0 = SubResource("StandardMaterial3D_8364l")
[node name="MeshInstance3D5" type="MeshInstance3D" parent="." unique_id=100028974]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0.60364604, 0.65602696, -0.23176795)
mesh = SubResource("BoxMesh_spw8y")
surface_material_override/0 = SubResource("StandardMaterial3D_6u34r")
[node name="MeshInstance3D2" type="MeshInstance3D" parent="." unique_id=425081066]
transform = Transform3D(2, 0, 0, 0, -8.742278e-08, -2, 0, 2, -8.742278e-08, -0.8505253, -0.079150766, -0.0012522853)
mesh = SubResource("CylinderMesh_e8ulu")
[node name="MeshInstance3D3" type="MeshInstance3D" parent="." unique_id=1992142361]
transform = Transform3D(2, 0, 0, 0, -8.742278e-08, -2, 0, 2, -8.742278e-08, 0.62777025, -0.079150766, -0.0012522853)
mesh = SubResource("CylinderMesh_e8ulu")
[node name="NavAgent" type="NavigationAgent3D" parent="." unique_id=774393024]
unique_name_in_owner = true
[node name="Hurtbox" type="Area3D" parent="." unique_id=688205599]
collision_layer = 0
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="Hurtbox" unique_id=192758567]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -0.122092836, 0.34972915, -0.0012522953)
shape = SubResource("BoxShape3D_8364l")
debug_color = Color(0.9913104, 0, 0.27320355, 0.41960785)
[connection signal="body_entered" from="Hurtbox" to="." method="_on_hurtbox_body_entered"]