project-dung/scenes/camera_room.tscn
2022-08-14 22:04:36 -07:00

34 lines
1.2 KiB
Plaintext

[gd_scene load_steps=4 format=2]
[ext_resource path="res://scripts/camera_room.gd" type="Script" id=1]
[sub_resource type="BoxShape" id=1]
extents = Vector3( 2.39087, 1.93969, 2.08096 )
[sub_resource type="CapsuleShape" id=2]
radius = 2.07384
height = 8.68195
[node name="camera_room0" type="Spatial"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 15.4075, 0, 0 )
script = ExtResource( 1 )
[node name="camera" type="Camera" parent="."]
transform = Transform( 0.054985, 0.806829, -0.588221, 0, 0.589112, 0.808052, 0.998487, -0.0444307, 0.0323923, -6.51055, 9.74907, 0 )
fov = 49.8
[node name="hitbox" type="Area" parent="."]
collision_layer = 16
collision_mask = 2
[node name="CollisionShape" type="CollisionShape" parent="hitbox"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -4.12314, 2.07098, 0.535633 )
shape = SubResource( 1 )
[node name="CollisionShape2" type="CollisionShape" parent="hitbox"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0097599, 0, -0.487964 )
shape = SubResource( 2 )
[connection signal="area_entered" from="hitbox" to="." method="_on_hitbox_area_entered"]
[connection signal="area_exited" from="hitbox" to="." method="_on_hitbox_area_exited"]