VERY rough test of replaying camera loc/rot

This commit is contained in:
Derek
2025-02-17 19:59:58 -06:00
parent 804e4d68c3
commit ba0d9ce2f3
10 changed files with 2525 additions and 32 deletions

View File

@@ -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"]

View File

@@ -580,7 +580,7 @@ attenuation_model = 1
autoplay = true
[node name="Magnet_Timer" type="Timer" parent="."]
wait_time = 0.5
wait_time = 0.01
one_shot = true
autostart = true

View File

@@ -684,7 +684,7 @@ fov_zoom_amt = 15.0
recoil_amount = Vector3(0.02, 0.05, 0.05)
max_ammo = 20
bullet_damage = 2
bullet_speed = 1200
bullet_speed = 600
r_hand_location = NodePath("mac10/RHandLocation")
l_hand_location = NodePath("mac10/mag/LHandLocation")
flare_light = NodePath("mac10/flare")

File diff suppressed because one or more lines are too long

1537
assets/revolver_2.tscn Normal file

File diff suppressed because one or more lines are too long