mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-15 22:53:47 +00:00
Debug boxes
This commit is contained in:
parent
05576dcbe6
commit
d35af0dc2a
9 changed files with 50 additions and 4 deletions
|
|
@ -7,6 +7,8 @@ namespace Cirno.Scripts.Actors;
|
|||
[Tool]
|
||||
public partial class ItemMarker3D : PreviewMarker3D
|
||||
{
|
||||
private readonly Vector3 _boxSize = new Vector3(0.5f, 0.8f, 0.5f);
|
||||
|
||||
private LootItem _item;
|
||||
|
||||
[Export]
|
||||
|
|
@ -117,4 +119,13 @@ public partial class ItemMarker3D : PreviewMarker3D
|
|||
|
||||
return Item.Spawn3D(this);
|
||||
}
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
if (!Engine.IsEditorHint()) return;
|
||||
|
||||
DebugDraw3D.DrawBox(this.GlobalPosition - _boxSize / 2, Quaternion.Identity, _boxSize, Colors.Blue);
|
||||
|
||||
//DebugDraw3D.DrawSphere(this.GlobalPosition, 0.1f, Colors.Green);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue