28 lines
1.1 KiB
Text
28 lines
1.1 KiB
Text
[gd_scene load_steps=5 format=3 uid="uid://oykrff3g74eo"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://3nq3g7ddnphr" path="res://Assets/GLB format/weapon-ammo-arrow.glb" id="1_dsts2"]
|
|
[ext_resource type="Script" uid="uid://b788twwo1o6l2" path="res://Bullets/arrow.gd" id="1_r5o86"]
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_r5o86"]
|
|
radius = 0.2
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_dsts2"]
|
|
radius = 0.3
|
|
|
|
[node name="Arrow" type="CharacterBody3D"]
|
|
script = ExtResource("1_r5o86")
|
|
|
|
[node name="weapon-ammo-arrow2" parent="." instance=ExtResource("1_dsts2")]
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.123779)
|
|
shape = SubResource("SphereShape3D_r5o86")
|
|
|
|
[node name="Impact" type="Area3D" parent="."]
|
|
|
|
[node name="CollisionShape3D2" type="CollisionShape3D" parent="Impact"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.137329)
|
|
shape = SubResource("SphereShape3D_dsts2")
|
|
debug_color = Color(0.926858, 0.237749, 0.335021, 0.42)
|
|
|
|
[connection signal="body_entered" from="Impact" to="." method="_on_impact_body_entered"]
|