spider collision box tweaks

This commit is contained in:
derek
2024-09-25 11:06:42 -05:00
parent 0a8e68654e
commit 8c2cd81b5c
5 changed files with 24 additions and 21 deletions

View File

@@ -6,25 +6,25 @@
[sub_resource type="CylinderShape3D" id="CylinderShape3D_ejwa0"]
margin = 0.001
height = 0.248374
radius = 0.062995
height = 0.122751
radius = 0.0315378
[node name="enemycasing" type="RigidBody3D" groups=["spawned"]]
collision_layer = 2
collision_mask = 7
mass = 0.1
continuous_cd = true
max_contacts_reported = 1
contact_monitor = true
max_contacts_reported = 1
linear_damp = 0.1
angular_damp = 0.1
script = ExtResource("1_dxvh8")
[node name="casing2" parent="." instance=ExtResource("2_ba08p")]
transform = Transform3D(0.010472, 1.84078e-05, -2.99998, 2.99998, 0.00523586, 0.010472, 0.0052359, -3, -1.31133e-07, 0, 0, 0)
transform = Transform3D(0.00523599, 9.20396e-06, -1.49999, 1.49999, 0.00261793, 0.005236, 0.00261795, -1.5, -6.55667e-08, 0, 0, 0)
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(-0.00106233, -0.000701004, -0.999999, 0.999999, -0.000431764, -0.00106203, -0.000431026, -1, 0.000701458, -7.7486e-06, 0.000259597, -3.74019e-06)
transform = Transform3D(-0.00106233, -0.000701044, -0.999999, 0.999999, -0.00043182, -0.00106203, -0.000431074, -1, 0.000701502, -7.7486e-06, 0.000259597, -3.74019e-06)
shape = SubResource("CylinderShape3D_ejwa0")
[node name="Timer" type="Timer" parent="."]

View File

@@ -14,8 +14,8 @@ collision_layer = 2
collision_mask = 7
mass = 0.1
continuous_cd = true
max_contacts_reported = 1
contact_monitor = true
max_contacts_reported = 1
linear_damp = 0.1
angular_damp = 0.1
script = ExtResource("1_34yke")

View File

@@ -7,8 +7,8 @@
[ext_resource type="PackedScene" uid="uid://crvohhc6kgshn" path="res://assets/bullet_hole.tscn" id="4_ubqgq"]
[ext_resource type="PackedScene" uid="uid://c1gdehrsytlkk" path="res://assets/casing_2.tscn" id="5_m3vsl"]
[ext_resource type="AudioStream" uid="uid://de7aipvsnsqfg" path="res://assets/Audio/pistol-smith-wesson-357-single-shot-exterior-SBA-300112290.wav" id="7_rgqdy"]
[ext_resource type="AudioStream" uid="uid://2rhacxv8tm6j" path="res://assets/Audio/Weapons/38 SPL Revolver/Foley/38 SPL Revolver - Unloading 001.wav" id="9_ob87h"]
[ext_resource type="AudioStream" uid="uid://t50i483xmj3a" path="res://assets/Audio/Weapons/toy-click-spin-SBA-300071143.wav" id="9_xt6tc"]
[ext_resource type="AudioStream" uid="uid://db3iy0f1pa5lg" path="res://assets/Audio/Weapons/gun-m-16-reload-full-clip-magazine-SBA-300121257.wav" id="10_0uh43"]
[ext_resource type="AudioStream" uid="uid://bn5irqlit3x7r" path="res://assets/Audio/Weapons/caulk-gun-handle-squeeze-metal-bar-clicks-SBA-300149154.wav" id="10_7umo2"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_bortg"]
@@ -428,6 +428,7 @@ _data = {
}
[node name="revolver1" node_paths=PackedStringArray("chamber", "casing0", "casing1", "casing2", "casing3", "casing4", "casing5", "casing_spawn0", "casing_spawn1", "casing_spawn2", "casing_spawn3", "casing_spawn4", "casing_spawn5", "bullet0", "bullet1", "bullet2", "bullet3", "bullet4", "bullet5", "anim_player", "barrel_raycast", "audio_fire", "audio_empty", "audio_reload") instance=ExtResource("1_i5f84")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0718293, 0)
script = ExtResource("2_7rsti")
gun_name = "Ye Ol' Revolver"
fire_mode = 1
@@ -548,7 +549,7 @@ stream = ExtResource("9_xt6tc")
bus = &"SFX"
[node name="Reload" type="AudioStreamPlayer3D" parent="Audio" index="2"]
stream = ExtResource("10_0uh43")
stream = ExtResource("9_ob87h")
volume_db = 3.0
bus = &"SFX"

File diff suppressed because one or more lines are too long

View File

@@ -1170,6 +1170,7 @@ health_drop_enabled = false
[node name="Player" parent="." instance=ExtResource("2_f87c2")]
transform = Transform3D(-0.866025, 0, -0.5, 0, 1, 0, 0.5, 0, -0.866025, -16.0295, 1.4435, 12.1166)
AUDIO = false
JUMP_VELOCITY = 6
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]