Debug boxes

This commit is contained in:
Marco 2025-07-02 10:34:14 +02:00
commit d35af0dc2a
9 changed files with 50 additions and 4 deletions

View file

@ -0,0 +1,18 @@
using Godot;
namespace Cirno.Scripts.Actors._3D;
[Tool]
public partial class PlayerStartMarker3D : Marker3D
{
private readonly Vector3 _boxSize = new Vector3(0.5f, 0.8f, 0.5f);
public override void _Process(double delta)
{
if (!Engine.IsEditorHint()) return;
DebugDraw3D.DrawBox(this.GlobalPosition - _boxSize / 2, Quaternion.Identity, _boxSize, Colors.Green);
//DebugDraw3D.DrawSphere(this.GlobalPosition, 0.1f, Colors.Green);
}
}

View file

@ -0,0 +1 @@
uid://csruxpdnpj18r