2024-09-14 06:41:52 +00:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Godot;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-05-22 12:25:02 +00:00
|
|
|
using Rokojori.Extensions;
|
2024-09-14 06:41:52 +00:00
|
|
|
namespace Rokojori
|
|
|
|
|
{
|
|
|
|
|
[Tool]
|
|
|
|
|
[GlobalClass]
|
|
|
|
|
public partial class DiscardSphere:Discarder
|
|
|
|
|
{
|
|
|
|
|
[Export]
|
|
|
|
|
public float radius;
|
|
|
|
|
|
|
|
|
|
public override bool IsInside( Vector3 position )
|
|
|
|
|
{
|
|
|
|
|
var localPoint = ToLocal( position );
|
|
|
|
|
return localPoint.LengthSquared() < radius * radius;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|