added working vending machine

This commit is contained in:
derek
2024-07-17 17:05:46 -05:00
parent 9a15224df9
commit 4511023fcc
12 changed files with 240 additions and 37 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -87,7 +87,7 @@ skeleton = NodePath("")
[node name="RayCast3D" type="RayCast3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1.70846, 0.000340699, 0.0133128, 2.00575)
target_position = Vector3(0, 0, -2.5)
collision_mask = 15
collision_mask = 3
hit_from_inside = true
collide_with_areas = true

View File

@@ -83,7 +83,7 @@ padding_amount = 0.025
[node name="GunRay" type="RayCast3D" parent="Head/Camera3D" groups=["gun_ray"]]
transform = Transform3D(0.977933, 0, -0.208919, 0, 1, 7.45058e-09, 0.208919, 0, 0.977933, 0, -0.197421, -0.129669)
target_position = Vector3(0, 0, -1.5)
target_position = Vector3(0, 0, -1)
[node name="AudioListener3D" type="AudioListener3D" parent="Head/Camera3D"]
transform = Transform3D(1, 0, 0, 0, 0.992332, 0.123601, 0, -0.123601, 0.992332, 0, -0.921646, -0.000722691)
@@ -107,6 +107,13 @@ target_position = Vector3(0, 0, -200)
collision_mask = 7
collide_with_areas = true
[node name="InteractRay" type="RayCast3D" parent="Head/Camera3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0521634, -0.764677)
target_position = Vector3(0, 0, -3)
collision_mask = 8
hit_from_inside = true
collide_with_areas = true
[node name="pick_up_detection" type="Area3D" parent="."]
collision_layer = 0
collision_mask = 4

View File

@@ -734,7 +734,7 @@ _surfaces = [{
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_hungu")
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_3ftb4"]
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_1u468"]
points = PackedVector3Array(0.930093, 0.100662, 0.798251, 0.930093, -0.0820646, 0.798251, -0.0290589, 0.100662, -1.94284, -0.166081, -0.127707, -1.94284, -0.303223, 0.146367, 0.204352, -0.211835, -0.173444, 0.204352, -0.303223, 0.0549884, -1.94284, 0.518907, 0.146367, 0.889554, 0.838705, -0.127707, 0.981144, 0.244984, -0.127707, 0.798251, -0.303223, -0.127707, 0.204352, 0.884338, -0.127707, 0.615073, 0.884338, 0.146367, 0.661154, -0.0290589, -0.0820646, -1.94284, 0.153596, -0.173444, 0.113049, 0.290618, 0.146367, -0.435342, 0.884338, 0.100662, 0.569851, -0.303223, -0.0363594, -1.94284, -0.211835, 0.100662, -1.94284, 0.290618, 0.146367, 0.798251, -0.303223, -0.127707, -0.389547, -0.120447, -0.127707, -1.94284, 0.884338, -0.0820646, 0.569851, 0.564661, -0.127707, 0.935349, 0.838705, 0.146367, 0.844046, 0.153596, 0.146367, -0.435342, -0.0290589, -0.127707, 0.524056, -0.257469, -0.0820646, -1.94284, 0.701683, 0.146367, 0.889554, 0.107963, -0.173444, 0.250147, -0.211835, -0.173444, 0.113049, 0.427519, -0.127707, 0.889554)
[sub_resource type="SphereShape3D" id="SphereShape3D_87tum"]
@@ -746,10 +746,10 @@ collision_mask = 6
script = ExtResource("1_8fbqg")
gun_resource = ExtResource("2_qbywk")
pickupType = "weapon"
collision_shape = NodePath("CollisionShape3D")
collision_shape = NodePath("")
[node name="revolver1" type="MeshInstance3D" parent="."]
transform = Transform3D(-2.17199e-06, 0.600001, 0, -0.6, -2.172e-06, 0, 0, 0, 0.6, 0, 0, -0.073)
transform = Transform3D(-1.086e-06, 0.3, 0, -0.3, -1.086e-06, 0, 0, 0, 0.3, 0, 0, -0.073)
mesh = SubResource("ArrayMesh_28d6l")
skeleton = NodePath("")
@@ -874,9 +874,9 @@ spot_range = 7.0
spot_angle = 70.0
spot_angle_attenuation = 0.353554
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(-2.17199e-06, 0.600001, 0, -0.6, -2.172e-06, 0, 0, 0, 0.6, 0, 0, -0.073)
shape = SubResource("ConvexPolygonShape3D_3ftb4")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="."]
transform = Transform3D(-1.086e-06, 0.3, 0, -0.3, -1.086e-06, 0, 0, 0, 0.3, 0, 0, -0.073)
shape = SubResource("ConvexPolygonShape3D_1u468")
[node name="Area3D" type="Area3D" parent="."]
collision_layer = 4