From d114c5f30031e33cae4632520410094cff4d304f Mon Sep 17 00:00:00 2001 From: lucastucious Date: Thu, 31 Jul 2025 22:04:33 +0200 Subject: [PATCH] Debugtools : DrawSphere + .zed folder gitignore --- .gitignore | 1 + dev/debug_tools.gd | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index 3ecf947..12d2730 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ data_*/ mono_crash.*.json BUILDS +.zed/ diff --git a/dev/debug_tools.gd b/dev/debug_tools.gd index dadf534..5908c05 100644 --- a/dev/debug_tools.gd +++ b/dev/debug_tools.gd @@ -144,3 +144,11 @@ func DrawCube(Center, HalfExtents := 0.1, time := 0.0, LineColor := Color(1.0, 0 DrawRay(LinePointStart, Vector3(0, HalfExtents * 2.0, 0), time, LineColor) LinePointStart += Vector3(0, 0, -HalfExtents * 2.0) DrawRay(LinePointStart, Vector3(0, HalfExtents * 2.0, 0), time, LineColor) + + +func DrawSphere(Position:Vector3): + var SphereShape = CSGSphere3D.new() + var node = Node3D.new() + node.add_child(SphereShape) + node.position = Position + get_tree().root.add_child(node)