2023-01-13 22:04:30 +01:00
|
|
|
#ifndef GSAI_RADIUS_PROXIMITY_H
|
|
|
|
#define GSAI_RADIUS_PROXIMITY_H
|
2023-01-13 21:13:57 +01:00
|
|
|
|
2023-01-14 00:28:56 +01:00
|
|
|
#include "core/object/func_ref.h"
|
|
|
|
#include "core/object/reference.h"
|
|
|
|
|
|
|
|
#include "gsai_proximity.h"
|
|
|
|
|
|
|
|
class SceneTree;
|
|
|
|
|
2023-01-13 21:13:57 +01:00
|
|
|
class GSAIRadiusProximity : public GSAIProximity {
|
2023-01-13 21:35:07 +01:00
|
|
|
GDCLASS(GSAIRadiusProximity, GSAIProximity);
|
|
|
|
|
|
|
|
public:
|
|
|
|
float get_radius() const;
|
|
|
|
void set_radius(const float val);
|
|
|
|
|
2023-01-14 00:28:56 +01:00
|
|
|
int _find_neighbors(Ref<FuncRef> callback);
|
2023-01-13 21:35:07 +01:00
|
|
|
|
|
|
|
GSAIRadiusProximity();
|
|
|
|
~GSAIRadiusProximity();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
|
|
|
|
2023-01-14 00:28:56 +01:00
|
|
|
float radius;
|
|
|
|
int _last_frame;
|
2023-01-13 21:13:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|