Added basic interaction functionality
This commit is contained in:
@@ -11,6 +11,8 @@ height = 0.234557
|
||||
[node name="Player3d" type="Node3D"]
|
||||
|
||||
[node name="CharacterBody3D" type="CharacterBody3D" parent="."]
|
||||
collision_layer = 16
|
||||
collision_mask = 17
|
||||
script = ExtResource("1_08wm4")
|
||||
SPEED = 0.5
|
||||
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://ob04y3syvo0e"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/interaction_area.gd" id="1_26v5g"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_i8sim"]
|
||||
radius = 1.0
|
||||
|
||||
[node name="InteractionArea" type="Node3D"]
|
||||
script = ExtResource("1_26v5g")
|
||||
|
||||
[node name="Area3D" type="Area3D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 16
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
|
||||
shape = SubResource("SphereShape3D_i8sim")
|
||||
Reference in New Issue
Block a user