Gonna invent a scripting language lol
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
@tool
|
||||
class_name PlayerCamera extends Node
|
||||
|
||||
const CAMERA_PIXELS_PER_UNIT = 1.0
|
||||
@@ -8,6 +9,9 @@ const CAMERA_PIXEL_SCALE = 1.0
|
||||
@export var offset:Vector3 = Vector3(0, 0, 12)
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if !camera || !target:
|
||||
return
|
||||
|
||||
# I tried a few things but this is most consistent for both backbuffer and
|
||||
# framebuffer viewports.
|
||||
var viewportHeight = get_viewport().get_visible_rect().size.y;
|
||||
|
Reference in New Issue
Block a user