This repository has been archived on 2025-09-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
rectangular/core/shadowing_camera_2d.gd

6 lines
189 B
GDScript3
Raw Normal View History

extends Camera2D
func _physics_process(_delta: float) -> void:
var orig_camera: Camera2D = NodeRegistry.player.camera
self.global_position = -orig_camera.get_viewport_transform().origin