feat: implemented bullet impacts
This commit is contained in:
parent
7a5c129bb9
commit
a7b3f97b3b
14 changed files with 644 additions and 12 deletions
13
project/objects/effects/bullet_impact.tscn
Normal file
13
project/objects/effects/bullet_impact.tscn
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://me2saxnylpfa"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://da2nhu26lshix" path="res://assets/textures/effects/bullet_impact_albedo.png" id="1_dkdib"]
|
||||
[ext_resource type="Texture2D" uid="uid://duj1snmy7lk1l" path="res://assets/textures/effects/bullet_impact_normal.png" id="2_drixv"]
|
||||
|
||||
[node name="BulletImpact" type="Node3D"]
|
||||
|
||||
[node name="Decal" type="Decal" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, 1, 0, -1, -4.371139e-08, 0, 0, 0)
|
||||
size = Vector3(0.1, 0.1, 0.1)
|
||||
texture_albedo = ExtResource("1_dkdib")
|
||||
texture_normal = ExtResource("2_drixv")
|
||||
cull_mask = 1047553
|
||||
|
|
@ -7,13 +7,20 @@ anim = NodePath("rifle/AnimationPlayer")
|
|||
|
||||
[node name="rifle" parent="." instance=ExtResource("1_afgyw")]
|
||||
|
||||
[node name="Body" parent="rifle/Character/Skeleton3D" index="0"]
|
||||
layers = 2
|
||||
|
||||
[node name="mesh" parent="rifle/Character/Skeleton3D" index="1"]
|
||||
layers = 2
|
||||
|
||||
[node name="BoneAttachment3D" type="BoneAttachment3D" parent="rifle/Character/Skeleton3D" index="2"]
|
||||
transform = Transform3D(1, -2.0932122e-15, 2.3524223e-18, 2.3525281e-18, 0.0022477505, 0.99999744, -2.0932126e-15, -0.9999974, 0.0022477508, 0.07988295, -0.13953947, -0.33976445)
|
||||
bone_name = "root"
|
||||
bone_idx = 39
|
||||
|
||||
[node name="RayCast3D" type="RayCast3D" parent="rifle/Character/Skeleton3D/BoneAttachment3D"]
|
||||
transform = Transform3D(1, 0, -1.6543612e-24, 0, 1, 0, 4.135903e-25, 0, 1, 0, 0.00010576844, 0.047063388)
|
||||
[node name="HitscanMuzzle" type="HitscanMuzzle" parent="rifle/Character/Skeleton3D/BoneAttachment3D"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994, 2.746498e-26, 0, 0.059500493)
|
||||
target_position = Vector3(0, 100, 0)
|
||||
|
||||
[node name="AnimationPlayer" parent="rifle" index="1"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue