Debugtools : DrawSphere
+ .zed folder gitignore
This commit is contained in:
parent
4adff6e9b8
commit
d114c5f300
2 changed files with 9 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -16,3 +16,4 @@ data_*/
|
||||||
mono_crash.*.json
|
mono_crash.*.json
|
||||||
|
|
||||||
BUILDS
|
BUILDS
|
||||||
|
.zed/
|
||||||
|
|
|
@ -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)
|
DrawRay(LinePointStart, Vector3(0, HalfExtents * 2.0, 0), time, LineColor)
|
||||||
LinePointStart += Vector3(0, 0, -HalfExtents * 2.0)
|
LinePointStart += Vector3(0, 0, -HalfExtents * 2.0)
|
||||||
DrawRay(LinePointStart, Vector3(0, HalfExtents * 2.0, 0), time, LineColor)
|
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)
|
||||||
|
|
Loading…
Reference in a new issue