LOOKS LIKE I FIXED THE BULLETS

needed to add raycast to target area collision layer
This commit is contained in:
derek
2024-11-27 11:46:52 -06:00
parent ffd39c63f8
commit ff3155f25f
4 changed files with 92 additions and 65 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=69 format=4 uid="uid://djr7vnr1hcx82"]
[gd_scene load_steps=75 format=4 uid="uid://djr7vnr1hcx82"]
[ext_resource type="Script" path="res://scripts/spider.gd" id="1_7e7fe"]
[ext_resource type="Texture2D" uid="uid://dmyn4eq2r12ue" path="res://assets/Models/spider1.albedoRAW.png" id="1_di6b8"]
@@ -131,6 +131,50 @@ _surfaces = [{
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_bkwy8")
[sub_resource type="Curve" id="Curve_h8f1e"]
_data = [Vector2(0, 0), 0.0, 1.4, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_a61ob"]
curve = SubResource("Curve_h8f1e")
[sub_resource type="Curve" id="Curve_hewln"]
min_value = -1.0
_data = [Vector2(0, -1), 0.0, 2.8, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_td4g1"]
curve = SubResource("Curve_hewln")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_jshtp"]
emission_shape = 1
emission_sphere_radius = 0.1
direction = Vector3(-3, 0, 0)
spread = 9.706
initial_velocity_min = 3.0
initial_velocity_max = 10.0
gravity = Vector3(0, 0.5, 0)
scale_min = 5.0
scale_max = 5.0
alpha_curve = SubResource("CurveTexture_a61ob")
hue_variation_curve = SubResource("CurveTexture_td4g1")
turbulence_enabled = true
turbulence_noise_strength = 0.0
turbulence_noise_scale = 0.655
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_crqaw"]
transparency = 1
blend_mode = 1
shading_mode = 0
albedo_color = Color(1, 1, 1, 0.14902)
albedo_texture = ExtResource("14_alcfd")
billboard_mode = 1
[sub_resource type="PlaneMesh" id="PlaneMesh_wcp5u"]
material = SubResource("StandardMaterial3D_crqaw")
size = Vector2(1, 1)
orientation = 2
[sub_resource type="ArrayMesh" id="ArrayMesh_fovcl"]
_surfaces = [{
"aabb": AABB(-0.328298, -0.27793, -0.600544, 0.59341, 0.471561, 0.924056),
@@ -368,9 +412,6 @@ _surfaces = [{
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_e6w2f")
[sub_resource type="SphereShape3D" id="SphereShape3D_53sks"]
radius = 0.201929
[sub_resource type="ArrayMesh" id="ArrayMesh_ae424"]
_surfaces = [{
"aabb": AABB(-0.0791332, -0.435205, -0.0791332, 0.158266, 0.426464, 0.158266),
@@ -802,6 +843,16 @@ mesh = SubResource("ArrayMesh_ncgm4")
skeleton = NodePath("")
surface_material_override/2 = SubResource("StandardMaterial3D_1eb8w")
[node name="fire_smoke" type="GPUParticles3D" parent="TurretLook/Turret"]
transform = Transform3D(-0.175298, 0, -0.984515, 0, 1, 0, 0.984515, 0, -0.175298, 0.127458, 0, -0.574557)
emitting = false
amount = 500
lifetime = 4.0
explosiveness = 1.0
fixed_fps = 60
process_material = SubResource("ParticleProcessMaterial_jshtp")
draw_pass_1 = SubResource("PlaneMesh_wcp5u")
[node name="Barrel1" type="RayCast3D" parent="TurretLook/Turret"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.122326, -0.000110626, -0.580876)
target_position = Vector3(0, 0, -1)
@@ -866,10 +917,6 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.03709, 0)
mesh = SubResource("ArrayMesh_2v4nl")
skeleton = NodePath("")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="body"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.27309, 0.440626)
shape = SubResource("SphereShape3D_53sks")
[node name="leg1" type="MeshInstance3D" parent="body"]
transform = Transform3D(-0.639212, -0.650131, -0.410778, -0.71307, 0.701093, -4.47035e-08, 0.287994, 0.292914, -0.911736, 0.305074, -0.206463, -0.323723)
mesh = SubResource("ArrayMesh_xc2wd")