mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-07 16:30:06 +01:00
Use @onready to init previous_position to prevent errors (#1042)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user