add debug drawing class

This commit is contained in:
2024-10-05 20:38:49 +10:00
parent cf1536f315
commit e27d16a9f9
3 changed files with 61 additions and 1 deletions

View File

@@ -34,6 +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)
func _input(event: InputEvent) -> void:
if event is InputEventMouseMotion: