idk getting back to it

This commit is contained in:
2025-08-19 16:56:44 -05:00
parent 0f3db7c4a4
commit 5cd8b8a04b
17 changed files with 342 additions and 67 deletions

View File

@@ -1,10 +1,11 @@
class_name PlayerCamera extends Node
const CAMERA_PIXELS_PER_UNIT = 32.0
const CAMERA_PIXEL_SCALE = 1.0
const CAMERA_PIXELS_PER_UNIT = 1.0
const CAMERA_PIXEL_SCALE = 2.0
@export var camera:Camera3D = null
@export var target:Node3D = null
@export var offset:Vector3 = Vector3(0, 0, 16)
func _process(delta: float) -> void:
# I tried a few things but this is most consistent for both backbuffer and
@@ -18,7 +19,7 @@ func _process(delta: float) -> void:
) / unitScale;
var look = target.global_position;
var position = Vector3(0, 0, 2) + look;
var position = offset + look;
camera.look_at_from_position(
Vector3(position.x, position.y + z, position.z),