dead camera much improved and has the ability to step through multiple stages
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://by7qyyhyurlw"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://by7qyyhyurlw"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/dead_cam.gd" id="1_qxtd8"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_qnbpl"]
|
||||
radius = 0.25
|
||||
|
||||
[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_2gkpp"]
|
||||
dof_blur_far_enabled = true
|
||||
dof_blur_near_enabled = true
|
||||
@@ -50,7 +53,15 @@ _data = {
|
||||
[node name="DeadCam" type="Node3D" groups=["spawned"]]
|
||||
script = ExtResource("1_qxtd8")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
[node name="CameraRigid" type="RigidBody3D" parent="."]
|
||||
collision_mask = 33
|
||||
gravity_scale = 0.0
|
||||
continuous_cd = true
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="CameraRigid"]
|
||||
shape = SubResource("SphereShape3D_qnbpl")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="CameraRigid"]
|
||||
attributes = SubResource("CameraAttributesPractical_2gkpp")
|
||||
fov = 15.0
|
||||
|
||||
@@ -58,8 +69,7 @@ fov = 15.0
|
||||
target_position = Vector3(0, 0, -1)
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 0.25
|
||||
one_shot = true
|
||||
wait_time = 0.3
|
||||
|
||||
[node name="Whiteout" type="ColorRect" parent="."]
|
||||
material = SubResource("CanvasItemMaterial_m5ien")
|
||||
@@ -72,4 +82,6 @@ libraries = {
|
||||
"": SubResource("AnimationLibrary_jsgjq")
|
||||
}
|
||||
|
||||
[node name="CamTarget" type="Node3D" parent="."]
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
||||
|
||||
Reference in New Issue
Block a user