pandemonium_engine/modules/steering_ai/behaviors/gsai_separation.h

34 lines
753 B
C++
Raw Normal View History

#ifndef GSAI_SEPARATION_H
#define GSAI_SEPARATION_H
2023-01-14 01:43:20 +01:00
#include "core/object/reference.h"
#include "../gsai_group_behavior.h"
class GSAITargetAcceleration;
class GSAISeparation : public GSAIGroupBehavior {
GDCLASS(GSAISeparation, GSAIGroupBehavior);
public:
float get_decay_coefficient() const;
void set_decay_coefficient(const float val);
2023-01-14 01:43:20 +01:00
Ref<GSAITargetAcceleration> get_acceleration();
void set_acceleration(const Ref<GSAITargetAcceleration> &val);
2023-01-14 01:43:20 +01:00
void _calculate_steering(Ref<GSAITargetAcceleration> p_acceleration);
bool _report_neighbor(Ref<GSAISteeringAgent> p_neighbor);
GSAISeparation();
~GSAISeparation();
protected:
static void _bind_methods();
2023-01-14 01:43:20 +01:00
float decay_coefficient;
Ref<GSAITargetAcceleration> acceleration;
};
#endif