small racing game im working on
Diffstat (limited to 'ui/editor/mousecast.gd')
-rw-r--r--ui/editor/mousecast.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/editor/mousecast.gd b/ui/editor/mousecast.gd
index a1faed6..90bd098 100644
--- a/ui/editor/mousecast.gd
+++ b/ui/editor/mousecast.gd
@@ -38,7 +38,7 @@ func _physics_process(_delta: float) -> void:
start = null
drag_area.hide()
drag_area.size = Vector2.ZERO
- if r.size.length_squared() < 1000:
+ if r.size.length() < depth:
position_to(r.get_center())
force_raycast_update()
if is_colliding() and get_collider() != null: