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 90bd098..a1faed6 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() < depth:
+ if r.size.length_squared() < 1000:
position_to(r.get_center())
force_raycast_update()
if is_colliding() and get_collider() != null: