From b48d4853d0e6a6c627043f53e100354e523c29c1 Mon Sep 17 00:00:00 2001 From: cel Date: Sun, 17 Jul 2022 03:03:14 +0100 Subject: move camera up --- godot/scenes/Die.gd | 4 ++-- godot/scenes/Die.tscn | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'godot/scenes') diff --git a/godot/scenes/Die.gd b/godot/scenes/Die.gd index 7d07a6f..9341bc1 100644 --- a/godot/scenes/Die.gd +++ b/godot/scenes/Die.gd @@ -76,8 +76,8 @@ func _physics_process(delta): $CamRoot/Horizontal.rotation_degrees.y = camrot_h $CamRoot/Horizontal/Vertical.rotation_degrees.x = camrot_v - $CamRoot.translation.x = translation.x - $CamRoot.translation.y = translation.y + $CamRoot.translation.x = translation.x + $CamRoot.translation.y = translation.y + 5 $CamRoot.translation.z = translation.z if last_frame_position != Vector3(translation.x, translation.y, translation.x): diff --git a/godot/scenes/Die.tscn b/godot/scenes/Die.tscn index a55f74d..bbd73ed 100644 --- a/godot/scenes/Die.tscn +++ b/godot/scenes/Die.tscn @@ -51,6 +51,7 @@ skeleton = NodePath("../..") material/0 = null [node name="CamRoot" type="Spatial" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 15.0578, 0 ) [node name="Horizontal" type="Spatial" parent="CamRoot"] @@ -59,4 +60,5 @@ material/0 = null [node name="Camera" type="ClippedCamera" parent="CamRoot/Horizontal/Vertical"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 10.1285 ) far = 8192.0 +margin = 0.57 process_mode = 1 -- cgit