implement physics props
This commit is contained in:
parent
1be53bf7bb
commit
6e783e0e57
9 changed files with 159 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://cdk6hwb4hi2wc"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://cdk6hwb4hi2wc"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b0c02p6ckmpdq" path="res://Scripts/Player/Player.gd" id="1_2f8j2"]
|
||||
[ext_resource type="PackedScene" uid="uid://cd67bfok34xhy" path="res://Scenes/GUI/InGameMenu.tscn" id="2_0s4r2"]
|
||||
|
|
@ -7,6 +7,7 @@
|
|||
[ext_resource type="AudioStream" uid="uid://bfeslo2ldb40t" path="res://UI/Sounds/flashlight_size_change.wav" id="5_gfoho"]
|
||||
[ext_resource type="AudioStream" uid="uid://8uh608yamqpj" path="res://UI/Sounds/flashlight_on.wav" id="6_gfoho"]
|
||||
[ext_resource type="AudioStream" uid="uid://bwwl6h7uyog64" path="res://UI/Sounds/flashlight_off.wav" id="7_7v0xc"]
|
||||
[ext_resource type="Script" uid="uid://b1f0pnt5r8fbx" path="res://Scripts/Player/PropPusher.gd" id="8_7v0xc"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ejydr"]
|
||||
radius = 0.3
|
||||
|
|
@ -34,6 +35,10 @@ spot_range = 1000.0
|
|||
spot_angle = 30.0
|
||||
spot_angle_attenuation = 0.25
|
||||
|
||||
[node name="Interact" type="RayCast3D" parent="Camera"]
|
||||
target_position = Vector3(0, 0, -2.5)
|
||||
hit_back_faces = false
|
||||
|
||||
[node name="DebugMenu" parent="." instance=ExtResource("3_ejydr")]
|
||||
visible = false
|
||||
mouse_filter = 2
|
||||
|
|
@ -55,3 +60,8 @@ volume_db = -5.0
|
|||
[node name="FlashlightOffSFX" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("7_7v0xc")
|
||||
volume_db = -5.0
|
||||
|
||||
[node name="PropPusher" type="Node" parent="." node_paths=PackedStringArray("controller")]
|
||||
script = ExtResource("8_7v0xc")
|
||||
controller = NodePath("..")
|
||||
enabled = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue