VERY rough test of replaying camera loc/rot
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
[gd_scene load_steps=12 format=4 uid="uid://neb8fxkrade0"]
|
||||
[gd_scene load_steps=13 format=4 uid="uid://neb8fxkrade0"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/bullet_cam.gd" id="1_uvdg3"]
|
||||
[ext_resource type="AudioStream" uid="uid://dqj4cx05f25jj" path="res://assets/Audio/punch-body-hard-SBA-300156881.wav" id="3_t6e3w"]
|
||||
|
||||
[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_w2xv5"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_mfpbf"]
|
||||
resource_name = "bullet"
|
||||
transparency = 1
|
||||
@@ -83,7 +85,7 @@ radius = 0.055
|
||||
[node name="BulletCam" type="RigidBody3D"]
|
||||
top_level = true
|
||||
collision_layer = 128
|
||||
collision_mask = 225
|
||||
collision_mask = 233
|
||||
mass = 0.01
|
||||
center_of_mass_mode = 1
|
||||
continuous_cd = true
|
||||
@@ -96,6 +98,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.789394)
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.35947)
|
||||
attributes = SubResource("CameraAttributesPractical_w2xv5")
|
||||
fov = 150.0
|
||||
|
||||
[node name="Cylinder" type="MeshInstance3D" parent="."]
|
||||
@@ -140,4 +143,14 @@ target_position = Vector3(0, 0, -2)
|
||||
collision_mask = 105
|
||||
collide_with_areas = true
|
||||
|
||||
[node name="cam_ray" type="RayCast3D" parent="."]
|
||||
target_position = Vector3(0, 0, -200)
|
||||
collision_mask = 105
|
||||
collide_with_areas = true
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 0.01
|
||||
autostart = true
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
||||
|
||||
Reference in New Issue
Block a user