38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://c1xw80jkg3reb"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://dlyqngebvo4h3" path="res://assets/Textures/TARGET.jpg" id="1_bbjaa"]
|
|
[ext_resource type="Script" uid="uid://xua2jmq16kjc" path="res://scripts/target_1.gd" id="1_ishjx"]
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ishjx"]
|
|
albedo_texture = ExtResource("1_bbjaa")
|
|
uv1_scale = Vector3(3.07, 2.05, 3.07)
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_polhc"]
|
|
material = SubResource("StandardMaterial3D_ishjx")
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_6f6oa"]
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_polhc"]
|
|
|
|
[node name="TARGET 1" type="StaticBody3D" groups=["range_target"]]
|
|
script = ExtResource("1_ishjx")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
|
mesh = SubResource("BoxMesh_polhc")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
shape = SubResource("BoxShape3D_6f6oa")
|
|
|
|
[node name="Area3D" type="Area3D" parent="."]
|
|
collision_layer = 128
|
|
collision_mask = 128
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
|
|
shape = SubResource("BoxShape3D_polhc")
|
|
|
|
[node name="RayCast3D" type="RayCast3D" parent="."]
|
|
target_position = Vector3(0, 0, -1)
|
|
collision_mask = 128
|
|
|
|
[connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]
|