Use @onready to init previous_position to prevent errors (#1042)

This commit is contained in:
Christen Lofland
2024-04-11 22:36:15 -05:00
committed by GitHub
parent 6e44341d67
commit f70868ce22

View File

@@ -24,7 +24,7 @@ var base_fov := fov
var desired_fov := fov
# Position on the last physics frame (used to measure speed).
var previous_position := global_position
@onready var previous_position := global_position
enum CameraType {
EXTERIOR,