mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-14 11:13:47 +00:00
Laser
This commit is contained in:
parent
8e5c575917
commit
75c0a7d994
11 changed files with 813 additions and 293 deletions
25
Scripts/Actors/3D/LaserConfig.cs
Normal file
25
Scripts/Actors/3D/LaserConfig.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
using Godot;
|
||||
|
||||
namespace Cirno.Scripts.Actors._3D;
|
||||
|
||||
[GlobalClass]
|
||||
public partial class LaserConfig : Resource
|
||||
{
|
||||
[Export] public float MaxLength = 50f;
|
||||
|
||||
[Export] public float WarningRadius = 0.05f;
|
||||
[Export] public float DamageRadius = 0.3f;
|
||||
|
||||
[Export] public float WarningDuration = 0.5f;
|
||||
[Export] public float ExpansionDelay = 0.0f;
|
||||
[Export] public float ExpansionDuration = 0.2f;
|
||||
|
||||
// If < 0 → infinite
|
||||
[Export] public float ActiveDuration = 1.0f;
|
||||
|
||||
[Export(PropertyHint.Layers3DPhysics)]
|
||||
public uint GeometryLayer = 1 << 0;
|
||||
|
||||
[Export(PropertyHint.Layers3DPhysics)]
|
||||
public uint Damagelayer = 2 << 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue