idk getting back to it
This commit is contained in:
@@ -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),
|
||||
|
Reference in New Issue
Block a user