add markers and circles to debug_draw

This commit is contained in:
2024-10-05 20:55:54 +10:00
parent e27d16a9f9
commit c89f69d613
2 changed files with 53 additions and 9 deletions

View File

@@ -34,8 +34,8 @@ func _process(delta: float) -> void:
var offset_direction := Vector3.BACK.rotated(Vector3.RIGHT, rotation.x)
var offset := offset_direction * distance
position = target_position + offset
DebugDraw.vector(target_position, target_position + Vector3.UP)
DebugDraw.vector(Vector3.ZERO, Vector3.UP, Color.GREEN)
DebugDraw.marker(target_position, 0.05)
func _input(event: InputEvent) -> void:
if event is InputEventMouseMotion: