10 lines
288 B
GDScript3
10 lines
288 B
GDScript3
|
|
@tool
|
||
|
|
extends Node3D
|
||
|
|
|
||
|
|
@export var width = 2.0
|
||
|
|
@export var height = 2.0
|
||
|
|
|
||
|
|
func _process(delta: float) -> void:
|
||
|
|
if Engine.is_editor_hint():
|
||
|
|
DebugDraw3D.draw_box(global_position + Vector3(0, (height / 2.0), 0), quaternion.normalized(), Vector3(0.001, height, width), Color(1, 0, 0), true)
|