fix aiming on elevation
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://c0buetf2h266d"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://c0buetf2h266d"]
|
||||
|
||||
[ext_resource type="Material" uid="uid://btpy4dp5lb8il" path="res://resources/materials/test_triplanar.tres" id="1_ixaua"]
|
||||
[ext_resource type="Script" path="res://scripts/camera/following_camera.gd" id="2_7j742"]
|
||||
[ext_resource type="PackedScene" uid="uid://b73y71y3efmv" path="res://scenes/player.tscn" id="2_f4ehn"]
|
||||
[ext_resource type="Script" path="res://scripts/camera/main_camera.gd" id="3_f4hhh"]
|
||||
|
||||
@@ -10,8 +9,6 @@
|
||||
[node name="Test" type="Node"]
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("2_f4ehn")]
|
||||
process_priority = 1
|
||||
process_physics_priority = 1
|
||||
|
||||
[node name="Geometry" type="Node" parent="."]
|
||||
|
||||
@@ -28,22 +25,14 @@ size = Vector3(50, 1, 50)
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="Lights"]
|
||||
transform = Transform3D(0.994881, 0.0858869, -0.0532522, 0, 0.526956, 0.849893, 0.101056, -0.845542, 0.524258, 0, 0, 0)
|
||||
shadow_enabled = true
|
||||
|
||||
[node name="Cameras" type="Node" parent="."]
|
||||
|
||||
[node name="FollowingCamera" type="Camera3D" parent="Cameras"]
|
||||
fov = 20.0
|
||||
near = 35.0
|
||||
far = 100.0
|
||||
script = ExtResource("2_7j742")
|
||||
height_offset = 0.5
|
||||
distance = 50.0
|
||||
angle_degrees = Vector3(-35, -45, 0)
|
||||
shadow_blur = 6.0
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
environment = SubResource("Environment_wctar")
|
||||
|
||||
[node name="MainCamera" type="Camera3D" parent="." node_paths=PackedStringArray("current_camera")]
|
||||
[node name="MainCamera" type="Camera3D" parent="."]
|
||||
transform = Transform3D(0.866025, -0.321394, 0.383022, 0, 0.766044, 0.642788, -0.5, -0.55667, 0.663414, 4.894, 6.43, 6.963)
|
||||
current = true
|
||||
fov = 20.0
|
||||
near = 35.0
|
||||
script = ExtResource("3_f4hhh")
|
||||
current_camera = NodePath("../Cameras/FollowingCamera")
|
||||
|
||||
Reference in New Issue
Block a user