started work on moving collision layers and added jump and land sounds
This commit is contained in:
@@ -36,7 +36,7 @@ radius = 8.0
|
||||
|
||||
[node name="Player" type="CharacterBody3D" node_paths=PackedStringArray("weapon_holder") groups=["player"]]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.11359, 0)
|
||||
collision_layer = 3
|
||||
collision_layer = 11
|
||||
safe_margin = 0.5
|
||||
script = ExtResource("1_x7wms")
|
||||
dead_player = ExtResource("2_4hoys")
|
||||
@@ -116,19 +116,19 @@ script = ExtResource("7_pnp4a")
|
||||
[node name="BulletRay" type="RayCast3D" parent="Head/Camera3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.89879)
|
||||
target_position = Vector3(0, 0, -200)
|
||||
collision_mask = 7
|
||||
collision_mask = 5
|
||||
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
|
||||
collision_mask = 2
|
||||
hit_from_inside = true
|
||||
collide_with_areas = true
|
||||
|
||||
[node name="pick_up_detection" type="Area3D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 4
|
||||
collision_mask = 16
|
||||
|
||||
[node name="CollisionShape3D2" type="CollisionShape3D" parent="pick_up_detection"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0810862, 0.330574, -0.138576)
|
||||
@@ -136,7 +136,7 @@ shape = SubResource("BoxShape3D_nfpjw")
|
||||
|
||||
[node name="pick_up_magnet" type="Area3D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 4
|
||||
collision_mask = 16
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="pick_up_magnet"]
|
||||
shape = SubResource("SphereShape3D_xfie3")
|
||||
@@ -146,8 +146,9 @@ shape = SubResource("SphereShape3D_xfie3")
|
||||
[node name="PickupSound" type="AudioStreamPlayer" parent="Audio"]
|
||||
stream = ExtResource("8_dwqsx")
|
||||
|
||||
[node name="LandSound" type="AudioStreamPlayer3D" parent="Audio"]
|
||||
[node name="LandSound" type="AudioStreamPlayer" parent="Audio"]
|
||||
stream = ExtResource("10_tn0pn")
|
||||
volume_db = -5.0
|
||||
|
||||
[node name="EarWind" type="AudioStreamPlayer" parent="Audio"]
|
||||
stream = ExtResource("11_he7p5")
|
||||
|
||||
Reference in New Issue
Block a user